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.Object
Class encapsulating the settings for the SimpleQueryString query, with their default values
-
-
Constructor Summary
Constructors Constructor Description Settings()
Generates defaultSimpleQueryStringQueryParser.Settings
object (uses ROOT locale, does lowercase terms, no lenient parsing, no wildcard analysis).Settings(SimpleQueryStringQueryParser.Settings other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
analyzeWildcard()
Returns whether to analyze wildcards.void
analyzeWildcard(boolean analyzeWildcard)
Specifies whether to analyze wildcards.boolean
autoGenerateSynonymsPhraseQuery()
Whether phrase queries should be automatically generated for multi terms synonyms.void
autoGenerateSynonymsPhraseQuery(boolean value)
boolean
equals(java.lang.Object obj)
int
fuzzyMaxExpansions()
void
fuzzyMaxExpansions(int fuzzyMaxExpansions)
int
fuzzyPrefixLength()
void
fuzzyPrefixLength(int fuzzyPrefixLength)
boolean
fuzzyTranspositions()
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.java.lang.String
quoteFieldSuffix()
Return the suffix to append for phrase matching, ornull
if no suffix should be appended.void
quoteFieldSuffix(java.lang.String suffix)
Set the suffix to append to field names for phrase matching.
-
-
-
Constructor Detail
-
Settings
public Settings()
Generates defaultSimpleQueryStringQueryParser.Settings
object (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, 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()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-