@param $boxId
@param $queryString
@param SearchScope|null $searchScope
@param null|int $firstIndex
@param int $count

@return SearchDocflowsResponse|\Protobuf\Message
556453
public function searchDocflows($boxId, $queryString, SearchScope $searchScope = null, $firstIndex = null, $count = 100)
    {
        $searchDocflowRequest = new SearchDocflowsRequest();
        $searchDocflowRequest->setQueryString($queryString);
        if ($searchScope) {
            $searchDocflowRequest->setScope($searchScope);
        }
        if ($firstIndex) {
            $searchDocflowRequest->setFirstIndex($firstIndex);
        }
        $searchDocflowRequest->setCount($count);

        $response = $this->doRequest(
            self::RESOURCE_SEARCH_DOCFLOWS,
            [
                'boxId' =>  $boxId
            ],
            self::METHOD_POST,
            $searchDocflowRequest->toStream()->getContents()
        );

        return SearchDocflowsResponse::fromStream($response);
    }
63788
public function getquery($queryId, $optParams = array())
  {
    $params = array('queryId' => $queryId);
    $params = array_merge($params, $optParams);
    return $this->call('getquery', array($params), "Google_Service_DoubleClickBidManager_Query");
  }
595053
protected function fromString($queryString)
    {
        if (empty($queryString)) {
            return $this;
        }

        $data = array();

        parse_str($queryString, $data);

        $this->fromArray($data);

        return $this;
    }
1411
public function runQuery($queryString){

		$this->affectedRows = false;
		$result = $this->resource->query($queryString, $this->unbuffered ? MYSQLI_USE_RESULT : MYSQLI_STORE_RESULT);

		$error = preg_replace('~You have an error in your SQL syntax; check the manual that corresponds to your \w+ server version for the right syntax to use~i', 'Syntax error', $this->resource->error);
		if($error && $result === false)
			throw new DriverException($error, $this->resource->errno, $queryString);

		$this->affectedRows = $this->resource->affected_rows;
		return $result;
	}
662454
public function searchUsers($searchString = null, $page, $limit)
    {
        return $this->buildUserSearchQuery($searchString)
            ->getQuery()
            ->setMaxResults($limit)
            ->setFirstResult($limit * ($page - 1))
            ->getResult();
    }
581343
public function smsQuery($recNum, $queryDate, $currentPage = 1, $pageSize = 50, $bizId = '')
    {
        // 公共参数
        $data = [
            'app_key' => $this->appKey,
            'timestamp' => $this->getTimestamp(),
            'format' => $this->format,
            'v' => $this->appVersion,
            'sign_method' => $this->signMethod,
            'method' => Alidayu::API_ALIBABA_ALIQIN_FC_SMS_NUM_QUERY,
        ];

        // 入参
        $data['rec_num'] = $recNum;
        $data['query_date'] = $queryDate;
        $data['current_page'] = $currentPage;
        $data['page_size'] = $pageSize;
        if ($bizId !== '') {
            $data['biz_id'] = $bizId;
        }

        // 签名
        $signature = $this->getSignature($data, $this->signMethod);
        $data['sign'] = $signature;
        // 请求
        return $this->post('', $data);
    }
66049
protected function getQueryInstanceFromQueryString($queryString)
    {
        if (preg_match('/^[ \r\n\t\f]*(?:(only[ \r\n\t\f]+)|(not[ \r\n\t\f]+))?([^ \r\n\t\f]*)[ \r\n\t\f]*(?:(?:and)?[ \r\n\t\f]*)*$/iD', $queryString, $matches)) {
            $type = $matches[3] === "" ? MediaQuery::TYPE_ALL : $matches[3];
            $query = new MediaQuery($type);
            if (!empty($matches[1])) {
                $query->setIsOnly(true);
            }
            if (!empty($matches[2])) {
                $query->setIsNot(true);
            }
            return $query;
        }
        return null;
    }
1332624
public static function addQueryString($path, $queryString = null)
    {
        if(null === $queryString) {
            return $path;
        }

        return sprintf("%s%s%s",
            $path,
            preg_match("#\?#", $path) ? (
                preg_match("#\?$#", $path) ?
                '' : '&'
            ) : '?',
            is_array($queryString) ? http_build_query($queryString) : $queryString
        );
    }
304436
public function search($query, $count = null)
    {
        $params = ['query' => [
            'q'     => $query,
            'count' => $count,
        ]];

        return $this->client->request(
            'GET',
            'users/search',
            $params
        );
    }
1170653
public function buildSuggestQuery(string $queryString, array $additionalFilters, int $requestedPageId, string $groupList) : SuggestQuery
    {
        $this->newSuggestQuery($queryString)
            ->useFiltersFromTypoScript()
            ->useSiteHashFromTypoScript($requestedPageId)
            ->useUserAccessGroups(explode(',', $groupList))
            ->useOmitHeader();


        if (!empty($additionalFilters)) {
            $this->useFilterArray($additionalFilters);
        }

        return $this->queryToBuild;
    }
1072398
public function query($queryString, array $queryValues = [])
    {
        if (!is_string($queryString) || empty($queryString)) {
            throw new \InvalidArgumentException(
                __METHOD__.': The specified query is not valid.'
            );
        }

        $this->connect();
        $this->resourceHandle = $this->dbConnection->prepare($queryString);

        try {
            // start transaction
            $this->dbConnection->beginTransaction();

            // execute the query and return a status
            $this->executionStatus = $this->resourceHandle->execute($queryValues ?: null);

            // get last inserted id if present
            $this->lastInsertedId = $this->dbConnection->lastInsertId();

            // finally execute the query
            $this->dbConnection->commit();
        } catch (\PDOException $ex) {
            // If an error occurs, execute rollback
            $this->dbConnection->rollBack();

            // Return execution status to false
            $this->executionStatus = false;
            $this->resourceHandle->closeCursor();

            throw new \RuntimeException(
                __METHOD__.": {$ex->getMessage()}\nqueryString: {$queryString}"
            );
        }

        return $this->resourceHandle;
    }
261888
public function getEvent($boxId, $eventId)
    {
        $response = $this->doRequest(
            self::RESOURCE_GET_EVENT,
            [
                'boxId' =>  $boxId,
                'eventId' =>    $eventId
            ]
        );

        return BoxEvent::fromStream($response);
    }
199091
public function conditionalAvailabilitySkuSearch(?string $searchString, array $requestParameters = []): ResultSet
    {
        $searchQuery = $this->getFactory()->createConditionalAvailabilitySkuSearchQuery($searchString);
        $searchQuery = $this->expandQuery($searchQuery, $this->getFactory()->getConditionalAvailabilitySkuSearchQueryExpanderPlugins(), $requestParameters);
        $resultFormatters = $this->getFactory()->getConditionalAvailabilitySkuSearchQueryFormatterPlugins();

        return $this->search($searchQuery, $resultFormatters, $requestParameters);
    }
512162
public static function getRelative($flags = 0x000000, Array $queryVars = array()) {
    $flags |= self::RELATIVE;
    return self::getURL(NULL,$flags, $queryVars);
  }
555653
public BoxRequestsSearch.Search getSearchRequest(String query) {
        BoxRequestsSearch.Search request = new BoxRequestsSearch.Search(query, getSearchUrl(), mSession);
        return request;
    }
554402
public function query($queryString, $type, $start = 0, $count = 10, $order = 'id', $dir = 'DESC') {
        $rootClass = $this->getClass($type);
        $results = $rootClass->searchInstances([
            OntologyRdfs::RDFS_LABEL => $queryString
        ], array(
            'recursive' => true,
            'like'      => true,
            'offset'    => $start,
            'limit'     => $count,
        ));
        $ids = array();
        foreach ($results as $resource) {
            $ids[] = $resource->getUri();
        }

        return new ResultSet($ids, $this->getTotalCount($queryString, $rootClass));
    }
1237750
private function getFuzzyQuery(ContainerConfigurationInterface $containerConfig, $queryText)
    {
        $relevanceConfig    = $containerConfig->getRelevanceConfig();
        $phraseMatchBoost = $relevanceConfig->getPhraseMatchBoost();

        $defaultSearchField = MappingInterface::DEFAULT_SPELLING_FIELD;

        $standardAnalyzer = FieldInterface::ANALYZER_WHITESPACE;
        $phraseAnalyzer   = FieldInterface::ANALYZER_WHITESPACE;
        if (is_string($queryText) && str_word_count($queryText) > 1) {
            $phraseAnalyzer = FieldInterface::ANALYZER_SHINGLE;
        }

        $fuzzyFieldFilter = $this->fieldFilters['fuzzyFieldFilter'];

        $searchFields = array_merge(
            $this->getWeightedFields($containerConfig, $standardAnalyzer, $fuzzyFieldFilter, $defaultSearchField),
            $this->getWeightedFields($containerConfig, $phraseAnalyzer, $fuzzyFieldFilter, $defaultSearchField, $phraseMatchBoost)
        );

        $queryParams = [
            'fields'             => $searchFields,
            'queryText'          => $queryText,
            'minimumShouldMatch' => "100%",
            'tieBreaker'         => $relevanceConfig->getTieBreaker(),
            'fuzzinessConfig'    => $relevanceConfig->getFuzzinessConfiguration(),
            'cutoffFrequency'    => $relevanceConfig->getCutoffFrequency(),
        ];

        return $this->queryFactory->create(QueryInterface::TYPE_MULTIMATCH, $queryParams);
    }