java.lang.Object
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.SimpleMappedFieldType
org.elasticsearch.index.mapper.TermBasedFieldType
org.elasticsearch.index.mapper.StringFieldType
org.elasticsearch.index.mapper.TextFamilyFieldType
- Direct Known Subclasses:
KeywordFieldMapper.KeywordFieldType,TextFieldMapper.TextFieldType
This is a quality of life class that adds synthetic source context for text fields that need it.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.BlockLoaderContext, MappedFieldType.CollapseType, MappedFieldType.FielddataOperation, MappedFieldType.FieldExtractPreference, MappedFieldType.Relation -
Field Summary
FieldsFields inherited from class org.elasticsearch.index.mapper.TermBasedFieldType
textSearchInfoFields inherited from class org.elasticsearch.index.mapper.MappedFieldType
indexType -
Constructor Summary
ConstructorsConstructorDescriptionTextFamilyFieldType(String name, IndexType indexType, boolean isStored, TextSearchInfo textSearchInfo, Map<String, String> meta, boolean isSyntheticSourceEnabled, boolean isWithinMultiField) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.queries.intervals.IntervalsSourcefuzzyIntervals(String term, int maxDistance, int prefixLength, boolean transpositions, SearchExecutionContext context) Create a fuzzyIntervalsSourcefor the given term.booleanbooleanorg.apache.lucene.queries.intervals.IntervalsSourceprefixIntervals(org.apache.lucene.util.BytesRef prefix, SearchExecutionContext context) Create anIntervalsSourcefor the given prefix.org.apache.lucene.queries.intervals.IntervalsSourcerangeIntervals(org.apache.lucene.util.BytesRef lowerTerm, org.apache.lucene.util.BytesRef upperTerm, boolean includeLower, boolean includeUpper, SearchExecutionContext context) Create a rangeIntervalsSourcefor the given rangesorg.apache.lucene.queries.intervals.IntervalsSourceregexpIntervals(org.apache.lucene.util.BytesRef pattern, SearchExecutionContext context) Create a regexpIntervalsSourcefor the given pattern.Returns the name of the "fallback" field that can be used for synthetic source when the "main" field was not stored for whatever reason.org.apache.lucene.queries.intervals.IntervalsSourcetermIntervals(org.apache.lucene.util.BytesRef term, SearchExecutionContext context) Create anIntervalsSourcefor the given term.org.apache.lucene.queries.intervals.IntervalsSourcewildcardIntervals(org.apache.lucene.util.BytesRef pattern, SearchExecutionContext context) Create a wildcardIntervalsSourcefor the given pattern.Methods inherited from class org.elasticsearch.index.mapper.StringFieldType
fuzzyQuery, normalizedWildcardQuery, normalizeWildcardPattern, prefixQuery, rangeQuery, regexpQuery, wildcardQuery, wildcardQueryMethods inherited from class org.elasticsearch.index.mapper.TermBasedFieldType
getTextSearchInfo, indexedValueForSearch, mayExistInIndex, termQuery, termQueryCaseInsensitive, termsQueryMethods inherited from class org.elasticsearch.index.mapper.SimpleMappedFieldType
rangeQueryMethods inherited from class org.elasticsearch.index.mapper.MappedFieldType
automatonQuery, blockLoader, checkNoFormat, checkNoTimeZone, collapseType, dimensions, distanceFeatureQuery, docValueFormat, eagerGlobalOrdinals, existsQuery, failIfNoDocValues, failIfNotIndexed, failIfNotIndexedNorDocValuesFallback, familyTypeName, fielddataBuilder, fieldHasValue, fuzzyQuery, getDefaultHighlighter, getMetricType, getTerms, hasDocValues, hasScriptValues, indexType, isAggregatable, isDimension, isFieldWithinQuery, isSearchable, isStored, isVectorEmbedding, meta, multiPhraseQuery, name, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixQuery, spanPrefixQuery, supportsBlockLoaderConfig, typeName, validateMatchedRoutingPath, valueFetcher, valueForDisplay, wildcardLikeQuery, wildcardQuery
-
Field Details
-
FALLBACK_FIELD_NAME_SUFFIX
- See Also:
-
-
Constructor Details
-
TextFamilyFieldType
-
-
Method Details
-
isSyntheticSourceEnabled
public boolean isSyntheticSourceEnabled() -
isWithinMultiField
public boolean isWithinMultiField() -
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 anIntervalsSourcefor the given term. -
prefixIntervals
public org.apache.lucene.queries.intervals.IntervalsSource prefixIntervals(org.apache.lucene.util.BytesRef prefix, SearchExecutionContext context) Create anIntervalsSourcefor the given prefix. -
fuzzyIntervals
public org.apache.lucene.queries.intervals.IntervalsSource fuzzyIntervals(String term, int maxDistance, int prefixLength, boolean transpositions, SearchExecutionContext context) Create a fuzzyIntervalsSourcefor the given term. -
wildcardIntervals
public org.apache.lucene.queries.intervals.IntervalsSource wildcardIntervals(org.apache.lucene.util.BytesRef pattern, SearchExecutionContext context) Create a wildcardIntervalsSourcefor the given pattern. -
regexpIntervals
public org.apache.lucene.queries.intervals.IntervalsSource regexpIntervals(org.apache.lucene.util.BytesRef pattern, SearchExecutionContext context) Create a regexpIntervalsSourcefor 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 rangeIntervalsSourcefor the given ranges
-