Horde_ElasticSearch_Client::search PHP Method

    public function search($index, $type, $q)
    {
        return $this->_request($this->_path($index, $type, '_search') . '?' . http_build_query(array('q' => $q)));
    }

Usage Example

Beispiel #1
0
 public function search($index, $type, $query)
 {
     try {
         return $this->_es->search($index, $type, $query);
     } catch (Horde_ElasticSearch_Exception $e) {
         throw new Content_Exception($e);
     }
 }