/** * 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']; }
/** * Get client * @return Client */ public function getClient() { return $this->manganel->getClient(); }