OPTION_SEARCH_TYPE
OPTION_SEARCH_TYPE
Elastica search object.
$_query : \Elastica\Query
$_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 | 
addType(\Elastica\Type|string  $type) : $this
                Adds a type to the current search.
| \Elastica\Type|string | $type | Type name or object | 
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 | 
hasType(\Elastica\Type|string  $type) : boolean
                
| \Elastica\Type|string | $type | 
getQuery() : \Elastica\Query
create(\Elastica\SearchableInterface  $searchObject) : \Elastica\Search
                Creates new search object.
| \Elastica\SearchableInterface | $searchObject | 
search(mixed $query = '', integer|array $options = null) : \Elastica\ResultSet
Search in the set indices, types.
| mixed | $query | |
| integer|array | $options | OPTIONAL Limit or associative array of options (option=>value) | 
count(mixed $query = '', $fullResult = false) : 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. | 
setOptionsAndQuery(array|integer $options = null, string|array|\Elastica\Query $query = '') : $this
| array|integer | $options | |
| string|array|\Elastica\Query | $query | 
setSuggest(\Elastica\Suggest  $suggest) : $this
                
| \Elastica\Suggest | $suggest | 
scroll(string  $expiryTime = '1m') : \Elastica\Scroll
                Returns the Scroll Iterator.
| string | $expiryTime | 
scanAndScroll(string $expiryTime = '1m', integer $sizePerShard = 1000) : \Elastica\ScanAndScroll
Returns the ScanAndScroll Iterator.
| string | $expiryTime | |
| integer | $sizePerShard | 
getResultSetBuilder() : \Elastica\ResultSet\BuilderInterface