Метод | Описание | |
---|---|---|
__construct ( string $query, array $fields = [] ) | ||
setAnalyzer ( string $analyzer ) | Set the analyzer used to analyze each term of the query. | |
setDefaultOperator ( string $operator ) | Set the default operator to use if no explicit operator is defined in the query string. | |
setFields ( array $fields ) | ||
setMinimumShouldMatch ( integer | string $minimumShouldMatch ) | Set minimum_should_match option. | |
setQuery ( string $query ) | Set the querystring for this query. |
public __construct ( string $query, array $fields = [] ) | ||
$query | string | |
$fields | array |
public setAnalyzer ( string $analyzer ) | ||
$analyzer | string |
public setDefaultOperator ( string $operator ) | ||
$operator | string | see OPERATOR_* constants for options |
public setMinimumShouldMatch ( integer | string $minimumShouldMatch ) | ||
$minimumShouldMatch | integer | string |