public function search($index, $type, $q) { return $this->_request($this->_path($index, $type, '_search') . '?' . http_build_query(array('q' => $q))); }
public function search($index, $type, $query) { try { return $this->_es->search($index, $type, $query); } catch (Horde_ElasticSearch_Exception $e) { throw new Content_Exception($e); } }