Class TextFamilyFieldType

Direct Known Subclasses:
KeywordFieldMapper.KeywordFieldType, TextFieldMapper.TextFieldType

public abstract class TextFamilyFieldType extends StringFieldType
This is a quality of life class that adds synthetic source context for text fields that need it.
  • Field Details

  • Constructor Details

    • TextFamilyFieldType

      public TextFamilyFieldType(String name, IndexType indexType, boolean isStored, TextSearchInfo textSearchInfo, Map<String,String> meta, boolean isSyntheticSourceEnabled, boolean isWithinMultiField)
  • Method Details

    • isSyntheticSourceEnabled

      public boolean isSyntheticSourceEnabled()
    • isWithinMultiField

      public boolean isWithinMultiField()
    • syntheticSourceFallbackFieldName

      public String syntheticSourceFallbackFieldName()
      Returns the name of the "fallback" field that can be used for synthetic source when the "main" field was not stored for whatever reason.
    • termIntervals

      public org.apache.lucene.queries.intervals.IntervalsSource termIntervals(org.apache.lucene.util.BytesRef term, SearchExecutionContext context)
      Create an IntervalsSource for the given term.
    • prefixIntervals

      public org.apache.lucene.queries.intervals.IntervalsSource prefixIntervals(org.apache.lucene.util.BytesRef prefix, SearchExecutionContext context)
      Create an IntervalsSource for the given prefix.
    • fuzzyIntervals

      public org.apache.lucene.queries.intervals.IntervalsSource fuzzyIntervals(String term, int maxDistance, int prefixLength, boolean transpositions, SearchExecutionContext context)
      Create a fuzzy IntervalsSource for the given term.
    • wildcardIntervals

      public org.apache.lucene.queries.intervals.IntervalsSource wildcardIntervals(org.apache.lucene.util.BytesRef pattern, SearchExecutionContext context)
      Create a wildcard IntervalsSource for the given pattern.
    • regexpIntervals

      public org.apache.lucene.queries.intervals.IntervalsSource regexpIntervals(org.apache.lucene.util.BytesRef pattern, SearchExecutionContext context)
      Create a regexp IntervalsSource for the given pattern.
    • rangeIntervals

      public org.apache.lucene.queries.intervals.IntervalsSource rangeIntervals(org.apache.lucene.util.BytesRef lowerTerm, org.apache.lucene.util.BytesRef upperTerm, boolean includeLower, boolean includeUpper, SearchExecutionContext context)
      Create a range IntervalsSource for the given ranges