java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.index.mapper.MetadataFieldMapper
org.elasticsearch.index.mapper.IdFieldMapper
- All Implemented Interfaces:
Iterable<Mapper>,ToXContent,ToXContentFragment
- Direct Known Subclasses:
ProvidedIdFieldMapper,TsidExtractingIdFieldMapper
A mapper for the _id field.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.elasticsearch.index.mapper.MetadataFieldMapper
MetadataFieldMapper.Builder, MetadataFieldMapper.ConfigurableTypeParser, MetadataFieldMapper.FixedTypeParser, MetadataFieldMapper.TypeParserNested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.BuilderParams, FieldMapper.Conflicts, FieldMapper.CopyTo, FieldMapper.DimensionBuilder, FieldMapper.DocValuesParameter, FieldMapper.MergeValidator<T>, FieldMapper.MultiFields, FieldMapper.Parameter<T>, FieldMapper.Serializer<T>, FieldMapper.SerializerCheck<T>, FieldMapper.SyntheticSourceMode, FieldMapper.SyntheticSourceSupport, FieldMapper.TextFamilyBuilderNested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.IgnoreAbove, Mapper.SourceKeepModeNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final MetadataFieldMapper.TypeParserFields inherited from class org.elasticsearch.index.mapper.FieldMapper
builderParams, COERCE_SETTING, deprecationLogger, IGNORE_MALFORMED_SETTING, mappedFieldTypeFields inherited from class org.elasticsearch.index.mapper.Mapper
SYNTHETIC_SOURCE_KEEP_INDEX_SETTING, SYNTHETIC_SOURCE_KEEP_PARAMFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Stringabstract StringdocumentDescription(DocumentParserContext context) Description of the document being parsed used in error messages.abstract StringdocumentDescription(ParsedDocument parsedDocument) Description of the document being indexed used after parsing for things like version conflicts.abstract StringBuild the_idto use on requests reindexing into indices using this_id.static org.apache.lucene.document.FieldCreate an indexed and storedFieldfor the provided_id.static org.apache.lucene.document.FieldstandardIdField(org.apache.lucene.util.BytesRef uid, org.apache.lucene.document.Field.Store stored) Create an indexedFieldfor the provided_id, optionally stored.static org.apache.lucene.document.FieldCreate aFieldcorresponding to a synthetic_idfield, which is not indexed and not stored but instead computed at runtime.static org.apache.lucene.document.FieldsyntheticIdField(org.apache.lucene.util.BytesRef uid) Create aFieldcorresponding to a synthetic_idfield, which is not indexed and not stored but instead resolved at runtime.Methods inherited from class org.elasticsearch.index.mapper.MetadataFieldMapper
getMergeBuilder, parseCreateField, postParse, preParse, syntheticSourceSupport, toXContent, updateableBoolParamMethods inherited from class org.elasticsearch.index.mapper.FieldMapper
checkIncomingMergeType, copyTo, createTypeParserWithLegacySupport, doParseMultiFields, doValidate, doXContentBody, executeScript, fieldType, fullPath, getTotalFieldsCount, hasScript, ignoreMalformed, indexScriptValues, iterator, multiFields, multiFieldsIterator, notFromDynamicTemplates, notInMultiFields, parse, parsesArrayValue, sourceKeepMode, sourcePathUsedBy, supportsParsingObject, syntheticFieldLoader, syntheticVectorsLoader, throwIndexingWithScriptParam, typeName, validateMethods inherited from class org.elasticsearch.index.mapper.Mapper
freezeAndDeduplicateFieldType, getOffsetFieldName, internFieldName, leafName, supportStoringArrayOffsets, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
NAME
- See Also:
-
CONTENT_TYPE
- See Also:
-
PARSER
-
-
Constructor Details
-
IdFieldMapper
-
-
Method Details
-
indexAnalyzers
- Overrides:
indexAnalyzersin classFieldMapper
-
contentType
- Specified by:
contentTypein classFieldMapper
-
documentDescription
Description of the document being parsed used in error messages. Not called unless there is an error. -
documentDescription
Description of the document being indexed used after parsing for things like version conflicts. -
reindexId
Build the_idto use on requests reindexing into indices using this_id. -
standardIdField
Create an indexed and storedFieldfor the provided_id. -
standardIdField
public static org.apache.lucene.document.Field standardIdField(org.apache.lucene.util.BytesRef uid, org.apache.lucene.document.Field.Store stored) Create an indexedFieldfor the provided_id, optionally stored. The id must already be encoded usingUid.encodeId(String). -
syntheticIdField
Create aFieldcorresponding to a synthetic_idfield, which is not indexed and not stored but instead computed at runtime. -
syntheticIdField
public static org.apache.lucene.document.Field syntheticIdField(org.apache.lucene.util.BytesRef uid) Create aFieldcorresponding to a synthetic_idfield, which is not indexed and not stored but instead resolved at runtime. The id must be already encoded usingUid.encodeId(String).
-