Method |
Description |
|
__construct ( string $queryString = '' ) |
Creates query string object. Calls setQuery with argument. |
|
setAllowLeadingWildcard ( boolean $allow = true ) |
Sets the parameter to allow * and ? as first characters. |
|
setAnalyzeWildcard ( boolean $analyze = true ) |
Allows analyzing of wildcard terms. |
|
setAnalyzer ( string $analyzer ) |
Sets the analyzer to analyze the query with. |
|
setAutoGeneratePhraseQueries ( boolean $autoGenerate = true ) |
Sets the param to automatically generate phrase queries. |
|
setBoost ( float $boost = 1 ) |
Sets the boost value of the query. |
|
setDefaultField ( string $field ) |
Sets the default field. |
|
setDefaultOperator ( string $operator ) |
Sets the default operator AND or OR. |
|
setEnablePositionIncrements ( boolean $enabled = true ) |
Sets the parameter to enable the position increments in result queries. |
|
setFields ( array $fields ) |
Sets the fields. If no fields are set, _all is chosen. |
|
setFuzzyMinSim ( float $minSim = 0.5 ) |
Sets the fuzzy minimal similarity parameter. |
|
setFuzzyPrefixLength ( integer $length ) |
Sets the fuzzy prefix length parameter. |
|
setPhraseSlop ( integer $phraseSlop ) |
Sets the phrase slop. |
|
setQuery ( string $query = '' ) |
Sets a new query string for the object. |
|
setRewrite ( string $rewrite = '' ) |
Set a re-write condition. See https://github.com/elasticsearch/elasticsearch/issues/1186 for additional information. |
|
setTieBreaker ( integer $tieBreaker ) |
When using dis_max, the disjunction max tie breaker. |
|
setTimezone ( string $timezone ) |
Set timezone option. |
|
setUseDisMax ( boolean $value = true ) |
Whether to use bool or dis_max queries to internally combine results for multi field search. |
|
toArray ( ) : array |
Converts query to array. |
|