\Elastica\QueryBuilder\DSLSuggest

elasticsearch suggesters DSL.

Summary

Methods
Properties
Constants
getType()
term()
phrase()
completion()
context()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getType()

getType() : string

must return type for QueryBuilder usage.

Returns

string

term()

term(  $name,   $field) : \Elastica\Suggest\Term

term suggester.

Parameters

$name
$field

Returns

\Elastica\Suggest\Term

phrase()

phrase(  $name,   $field) : \Elastica\Suggest\Phrase

phrase suggester.

Parameters

$name
$field

Returns

\Elastica\Suggest\Phrase

completion()

completion(string  $name, string  $field) : \Elastica\Suggest\Completion

completion suggester.

Parameters

string $name
string $field

Returns

\Elastica\Suggest\Completion

context()

context() 

context suggester.