Method | Description | |
---|---|---|
AllowLeadingWildcard ( bool allowLeadingWildcard ) : |
Should leading wildcards be allowed or not. Defaults to true.
|
|
AnalyzeWildcard ( bool analyzeWildcard ) : |
Set to true to enable analysis on wildcard and prefix queries.
|
|
Analyzer ( string analyzer ) : |
The optional analyzer used to analyze the query string. Note, if a field has search analyzer defined for it, then it will be used automatically. Defaults to the smart search analyzer.
|
|
AutoGeneratePhraseQueries ( bool autoGeneratePhraseQueries ) : |
Set to true if phrase queries will be automatically generated when the analyzer returns more than one term from whitespace delimited text. NOTE: this behavior may not be suitable for all languages. Set to false if phrase queries should only be generated when surrounded by double quotes.
|
|
Boost ( float boost ) : |
Sets the boost for this query. Documents matching this query will (in addition to the normal weightings) have their score multiplied by the boost provided.
|
|
DefaultField ( string defaultField ) : |
The default field to run against when no prefix field is specified. Only relevant when not explicitly adding fields the query string will run against.
|
|
DefaultOperator ( Operator defaultOperator ) : |
Sets the boolean operator of the query parser used to parse the query string. In default mode ({@link FieldQueryBuilder.Operator#OR}) terms without any modifiers are considered optional: for example
|
|
EnablePositionIncrements ( bool enablePositionIncrements ) : |
Set to true to enable position increments in result query. Defaults to true. When set, result phrase and multi-phrase queries will be aware of position increments. Useful when e.g. a StopFilter increases the position increment of the token that follows an omitted token.
|
|
Field ( string field ) : |
Adds a field to run the query string against.
|
|
Field ( string field, float boost ) : |
Adds a field to run the query string against with a specific boost.
|
|
FuzzyMinSim ( float fuzzyMinSim ) : |
Set the minimum similarity for fuzzy queries. Default is 0.5f.
|
|
FuzzyPrefixLength ( int fuzzyPrefixLength ) : |
Set the minimum similarity for fuzzy queries. Default is 0.5f.
|
|
LowercaseExpandedTerms ( bool lowercaseExpandedTerms ) : |
Whether terms of wildcard, prefix, fuzzy and range queries are to be automatically lower-cased or not. Default is true.
|
|
MinimumShouldMatch ( string minimumShouldMatch ) : |
||
PhraseSlop ( int phraseSlop ) : |
Sets the default slop for phrases. If zero, then exact phrase matches are required. Default value is zero.
|
|
QueryStringQueryBuilder ( string querystring ) : System | ||
Rewrite ( string rewrite ) : |
||
TieBreaker ( float tieBreaker ) : |
When more than one field is used with the query string, and combined queries are using dis max, control the tie breaker for it.
|
|
ToJsonObject ( ) : object | ||
ToString ( ) : string | ||
UseDisMax ( bool useDisMax ) : |
When more than one field is used with the query string, should queries be combined using dis max, or boolean query. Defaults to dis max (true).
|
public AllowLeadingWildcard ( bool allowLeadingWildcard ) : |
||
allowLeadingWildcard | bool | |
return |
public AnalyzeWildcard ( bool analyzeWildcard ) : |
||
analyzeWildcard | bool | |
return |
public Analyzer ( string analyzer ) : |
||
analyzer | string | |
return |
public AutoGeneratePhraseQueries ( bool autoGeneratePhraseQueries ) : |
||
autoGeneratePhraseQueries | bool | |
return |
public Boost ( float boost ) : |
||
boost | float | |
return |
public DefaultField ( string defaultField ) : |
||
defaultField | string | |
return |
public DefaultOperator ( Operator defaultOperator ) : |
||
defaultOperator | Operator | |
return |
public EnablePositionIncrements ( bool enablePositionIncrements ) : |
||
enablePositionIncrements | bool | |
return |
public Field ( string field ) : |
||
field | string | |
return |
public Field ( string field, float boost ) : |
||
field | string | |
boost | float | |
return |
public FuzzyMinSim ( float fuzzyMinSim ) : |
||
fuzzyMinSim | float | |
return |
public FuzzyPrefixLength ( int fuzzyPrefixLength ) : |
||
fuzzyPrefixLength | int | |
return |
public LowercaseExpandedTerms ( bool lowercaseExpandedTerms ) : |
||
lowercaseExpandedTerms | bool | |
return |
public MinimumShouldMatch ( string minimumShouldMatch ) : |
||
minimumShouldMatch | string | |
return |
public PhraseSlop ( int phraseSlop ) : |
||
phraseSlop | int | |
return |
public QueryStringQueryBuilder ( string querystring ) : System | ||
querystring | string | |
return | System |
public Rewrite ( string rewrite ) : |
||
rewrite | string | |
return |
public TieBreaker ( float tieBreaker ) : |
||
tieBreaker | float | |
return |
public UseDisMax ( bool useDisMax ) : |
||
useDisMax | bool | |
return |