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
ConstructorDescriptionSettings()
Generates defaultSimpleQueryStringQueryParser.Settings
object (uses ROOT locale, does lowercase terms, no lenient parsing, no wildcard analysis). -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether to analyze wildcards.void
analyzeWildcard(boolean analyzeWildcard)
Specifies whether to analyze wildcards.boolean
Whether phrase queries should be automatically generated for multi terms synonyms.void
autoGenerateSynonymsPhraseQuery(boolean value)
boolean
int
void
fuzzyMaxExpansions(int fuzzyMaxExpansions)
int
void
fuzzyPrefixLength(int fuzzyPrefixLength)
boolean
void
fuzzyTranspositions(boolean fuzzyTranspositions)
int
hashCode()
boolean
lenient()
Returns whether to use lenient parsing.void
lenient(boolean lenient)
Specifies whether to use lenient parsing, defaults to false.Return the suffix to append for phrase matching, ornull
if no suffix should be appended.void
quoteFieldSuffix(String suffix)
Set the suffix to append to field names for phrase matching.
-
Constructor Details
-
Settings
public Settings()Generates defaultSimpleQueryStringQueryParser.Settings
object (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, ornull
if 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
-