OPTION_SEARCH_TYPE
OPTION_SEARCH_TYPE
Elastica search object.
$_client : \Elastica\Client
Client object.
$_builder : \Elastica\ResultSet\BuilderInterface
__construct(\Elastica\Client $client, \Elastica\ResultSet\BuilderInterface $builder = null)
Constructs search object.
| \Elastica\Client | $client | Client object |
| \Elastica\ResultSet\BuilderInterface | $builder |
addIndex(\Elastica\Index|string $index) : $this
Adds a index to the list.
| \Elastica\Index|string | $index | Index object or string |
setQuery(string|array|\Elastica\Query|\Elastica\Suggest|\Elastica\Query\AbstractQuery $query) : $this
| string|array|\Elastica\Query|\Elastica\Suggest|\Elastica\Query\AbstractQuery | $query |
getClient() : \Elastica\Client
Return client object.
Client object
hasIndex(\Elastica\Index|string $index) : boolean
| \Elastica\Index|string | $index |
create(\Elastica\SearchableInterface $searchObject) : \Elastica\Search
Creates new search object.
| \Elastica\SearchableInterface | $searchObject |
search(mixed $query = '', integer|array $options = null, string $method = \Elastica\Request::POST) : \Elastica\ResultSet
Search in the set indices.
| mixed | $query | |
| integer|array | $options | OPTIONAL Limit or associative array of options (option=>value) |
| string | $method | OPTIONAL Request method (use const's) (default = Request::POST) |
count(mixed $query = '', $fullResult = false, string $method = \Elastica\Request::POST) : integer|\Elastica\ResultSet
| mixed | $query | |
| $fullResult | (default = false) By default only the total hit count is returned. If set to true, the full ResultSet including aggregations is returned |
|
| string | $method | OPTIONAL Request method (use const's) (default = Request::POST) |
setSuggest(\Elastica\Suggest $suggest) : $this
| \Elastica\Suggest | $suggest |
scroll(string $expiryTime = '1m') : \Elastica\Scroll
Returns the Scroll Iterator.
| string | $expiryTime |
getResultSetBuilder() : \Elastica\ResultSet\BuilderInterface