Package org.elasticsearch.index.search
Class SimpleQueryStringQueryParser.Settings
java.lang.Object
org.elasticsearch.index.search.SimpleQueryStringQueryParser.Settings
- Enclosing class:
- SimpleQueryStringQueryParser
Class encapsulating the settings for the SimpleQueryString query, with
their default values
-
Constructor Summary
ConstructorsConstructorDescriptionSettings()Generates defaultSimpleQueryStringQueryParser.Settingsobject (uses ROOT locale, does lowercase terms, no lenient parsing, no wildcard analysis). -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether to analyze wildcards.voidanalyzeWildcard(boolean analyzeWildcard) Specifies whether to analyze wildcards.booleanWhether phrase queries should be automatically generated for multi terms synonyms.voidautoGenerateSynonymsPhraseQuery(boolean value) booleanintvoidfuzzyMaxExpansions(int fuzzyMaxExpansions) intvoidfuzzyPrefixLength(int fuzzyPrefixLength) booleanvoidfuzzyTranspositions(boolean fuzzyTranspositions) inthashCode()booleanlenient()Returns whether to use lenient parsing.voidlenient(boolean lenient) Specifies whether to use lenient parsing, defaults to false.Return the suffix to append for phrase matching, ornullif no suffix should be appended.voidquoteFieldSuffix(String suffix) Set the suffix to append to field names for phrase matching.
-
Constructor Details
-
Settings
public Settings()Generates defaultSimpleQueryStringQueryParser.Settingsobject (uses ROOT locale, does lowercase terms, no lenient parsing, no wildcard analysis). -
Settings
-
-
Method Details
-
lenient
public void lenient(boolean lenient) Specifies whether to use lenient parsing, defaults to false. -
lenient
public boolean lenient()Returns whether to use lenient parsing. -
analyzeWildcard
public void analyzeWildcard(boolean analyzeWildcard) Specifies whether to analyze wildcards. Defaults to false if unset. -
analyzeWildcard
public boolean analyzeWildcard()Returns whether to analyze wildcards. -
quoteFieldSuffix
Set the suffix to append to field names for phrase matching. -
quoteFieldSuffix
Return the suffix to append for phrase matching, ornullif no suffix should be appended. -
autoGenerateSynonymsPhraseQuery
public void autoGenerateSynonymsPhraseQuery(boolean value) -
autoGenerateSynonymsPhraseQuery
public boolean autoGenerateSynonymsPhraseQuery()Whether phrase queries should be automatically generated for multi terms synonyms. Defaults totrue. -
fuzzyPrefixLength
public int fuzzyPrefixLength() -
fuzzyPrefixLength
public void fuzzyPrefixLength(int fuzzyPrefixLength) -
fuzzyMaxExpansions
public int fuzzyMaxExpansions() -
fuzzyMaxExpansions
public void fuzzyMaxExpansions(int fuzzyMaxExpansions) -
fuzzyTranspositions
public boolean fuzzyTranspositions() -
fuzzyTranspositions
public void fuzzyTranspositions(boolean fuzzyTranspositions) -
hashCode
public int hashCode() -
equals
-