Method |
Description |
|
__construct ( Connection $connection, ONGR\ElasticsearchDSL\Search $query = null ) |
Builder constructor. |
|
append ( $suggestion ) |
Append a suggestion to query. |
|
completion ( $name, $text, array $parameters = [] ) |
Add a completion suggestion. |
|
get ( ) : array |
Execute the suggest query against elastic and return the raw result if model not set. |
|
getConnection ( ) : Connection |
Returns the connection instance. |
|
getIndex ( ) : string |
Return the current elastic index. |
|
index ( string $index ) |
Set the elastic index to query against. |
|
term ( string $name, string $text, array $parameters = [] ) |
Add a term suggestion. |
|
toDSL ( ) : array |
Return the DSL query. |
|