Class TextSearchInfo

java.lang.Object
org.elasticsearch.index.mapper.TextSearchInfo

public class TextSearchInfo
extends java.lang.Object
Encapsulates information about how to perform text searches over a field
  • Field Details

    • SIMPLE_MATCH_ONLY

      public static final TextSearchInfo SIMPLE_MATCH_ONLY
      Defines indexing information for fields that support only simple match text queries
    • WHITESPACE_MATCH_ONLY

      public static final TextSearchInfo WHITESPACE_MATCH_ONLY
      Defines indexing information for fields that index as keywords, but split query input on whitespace to build disjunctions.
    • NONE

      public static final TextSearchInfo NONE
      Specifies that this field does not support text searching of any kind
  • Constructor Details

    • TextSearchInfo

      public TextSearchInfo​(org.apache.lucene.document.FieldType luceneFieldType, SimilarityProvider similarity, NamedAnalyzer searchAnalyzer, NamedAnalyzer searchQuoteAnalyzer)
      Create a new TextSearchInfo
      Parameters:
      luceneFieldType - the lucene FieldType of the field to be searched
      similarity - defines which Similarity to use when searching. If set to null then the default Similarity will be used.
  • Method Details