Beispiel #1
0
 /**
  * Get search results
  * @param string $q
  * @return array
  */
 public function search($q = null)
 {
     $params = $this->getParams($q);
     $result = $this->manganel->getClient()->search($params);
     if (empty($result) && empty($result['hits']) && empty($result['hits']['hits'])) {
         return [];
         // @codeCoverageIgnore
     }
     return $result['hits']['hits'];
 }
Beispiel #2
0
 /**
  * Get client
  * @return Client
  */
 public function getClient()
 {
     return $this->manganel->getClient();
 }