ElasticSearcher\ElasticSearcher::getClient PHP Метод

getClient() публичный Метод

public getClient ( ) : Elasticsearch\Client
Результат Elasticsearch\Client
    public function getClient()
    {
        return $this->client;
    }

Usage Example

Пример #1
0
 /**
  * Build and execute the query.
  *
  * @return AbstractResultParser
  */
 public function run()
 {
     $query = $this->buildQuery();
     // Execute the query.
     $rawResults = $this->searcher->getClient()->search($query);
     // Pass response to the class that will do something with it.
     $resultParser = $this->getResultParser();
     $resultParser->setRawResults($rawResults);
     return $resultParser;
 }