Method |
Description |
|
__construct ( Client $client, Elastica\ResultSet\BuilderInterface $builder = null ) |
Constructs search object. |
|
addIndex ( Index | string $index ) |
Adds a index to the list. |
|
addIndices ( array $indices = [] ) |
Add array of indices at once. |
|
addOption ( string $key, mixed $value ) |
|
|
addType ( Type | string $type ) |
Adds a type to the current search. |
|
addTypes ( array $types = [] ) |
Add array of types. |
|
clearOptions ( ) |
|
|
count ( mixed $query = '', $fullResult = false ) : integer | ResultSet |
|
|
create ( elastica\SearchableInterface $searchObject ) : Search |
Creates new search object. |
|
getClient ( ) : Client |
Return client object. |
|
getIndices ( ) : array |
Return array of indices. |
|
getOption ( string $key ) : mixed |
|
|
getOptions ( ) : array |
|
|
getPath ( ) : string |
Combines indices and types to the search request path. |
|
getQuery ( ) : Query |
|
|
getResultSetBuilder ( ) : Elastica\ResultSet\BuilderInterface |
|
|
getTypes ( ) : array |
Return array of types. |
|
hasIndex ( Index | string $index ) : boolean |
|
|
hasIndices ( ) : boolean |
|
|
hasOption ( string $key ) : boolean |
|
|
hasType ( Type | string $type ) : boolean |
|
|
hasTypes ( ) : boolean |
|
|
scroll ( string $expiryTime = '1m' ) : Scroll |
Returns the Scroll Iterator. |
|
search ( mixed $query = '', integer | array $options = null ) : ResultSet |
Search in the set indices, types. |
|
setOption ( string $key, mixed $value ) |
|
|
setOptions ( array $options ) |
|
|
setOptionsAndQuery ( array | integer $options = null, string | array | Query $query = '' ) |
|
|
setQuery ( string | array | Query | Elastica\Suggest | Elastica\Query\AbstractQuery $query ) |
|
|
setSuggest ( elastica\Suggest $suggest ) |
|
|