Class SimpleQueryStringQueryParser.Settings

java.lang.Object
org.elasticsearch.index.search.SimpleQueryStringQueryParser.Settings
Enclosing class:
SimpleQueryStringQueryParser

public static class SimpleQueryStringQueryParser.Settings extends Object
Class encapsulating the settings for the SimpleQueryString query, with their default values
  • Constructor Details

  • 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

      public void quoteFieldSuffix(String suffix)
      Set the suffix to append to field names for phrase matching.
    • quoteFieldSuffix

      public String quoteFieldSuffix()
      Return the suffix to append for phrase matching, or null 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 to true.
    • 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 class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object