Package org.elasticsearch.index.search
Class SimpleQueryStringQueryParser.Settings
- java.lang.Object
-
- org.elasticsearch.index.search.SimpleQueryStringQueryParser.Settings
-
- Enclosing class:
- SimpleQueryStringQueryParser
public static class SimpleQueryStringQueryParser.Settings extends java.lang.ObjectClass encapsulating the settings for the SimpleQueryString query, with their default values
-
-
Constructor Summary
Constructors Constructor Description Settings()Generates defaultSimpleQueryStringQueryParser.Settingsobject (uses ROOT locale, does lowercase terms, no lenient parsing, no wildcard analysis).Settings(SimpleQueryStringQueryParser.Settings other)
-
Method Summary
Modifier and Type Method Description booleananalyzeWildcard()Returns whether to analyze wildcards.voidanalyzeWildcard(boolean analyzeWildcard)Specifies whether to analyze wildcards.booleanautoGenerateSynonymsPhraseQuery()Whether phrase queries should be automatically generated for multi terms synonyms.voidautoGenerateSynonymsPhraseQuery(boolean value)booleanequals(java.lang.Object obj)intfuzzyMaxExpansions()voidfuzzyMaxExpansions(int fuzzyMaxExpansions)intfuzzyPrefixLength()voidfuzzyPrefixLength(int fuzzyPrefixLength)booleanfuzzyTranspositions()voidfuzzyTranspositions(boolean fuzzyTranspositions)inthashCode()booleanlenient()Returns whether to use lenient parsing.voidlenient(boolean lenient)Specifies whether to use lenient parsing, defaults to false.java.lang.StringquoteFieldSuffix()Return the suffix to append for phrase matching, ornullif no suffix should be appended.voidquoteFieldSuffix(java.lang.String suffix)Set the suffix to append to field names for phrase matching.
-
-
-
Constructor Detail
-
Settings
public Settings()
Generates defaultSimpleQueryStringQueryParser.Settingsobject (uses ROOT locale, does lowercase terms, no lenient parsing, no wildcard analysis).
-
Settings
public Settings(SimpleQueryStringQueryParser.Settings other)
-
-
Method Detail
-
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
public void quoteFieldSuffix(java.lang.String suffix)
Set the suffix to append to field names for phrase matching.
-
quoteFieldSuffix
public java.lang.String 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()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-