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.TypeParser
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.BuilderParams, FieldMapper.Conflicts, FieldMapper.CopyTo, FieldMapper.DimensionBuilder, FieldMapper.MergeValidator<T>, FieldMapper.MultiFields, FieldMapper.Parameter<T>, FieldMapper.Serializer<T>, FieldMapper.SerializerCheck<T>, FieldMapper.SyntheticSourceMode, FieldMapper.SyntheticSourceSupport
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.SourceKeepMode
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final MetadataFieldMapper.TypeParser
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
builderParams, COERCE_SETTING, deprecationLogger, IGNORE_MALFORMED_SETTING, mappedFieldType
Fields inherited from class org.elasticsearch.index.mapper.Mapper
SYNTHETIC_SOURCE_KEEP_INDEX_SETTING, SYNTHETIC_SOURCE_KEEP_PARAM
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final String
abstract String
documentDescription
(DocumentParserContext context) Description of the document being parsed used in error messages.abstract String
documentDescription
(ParsedDocument parsedDocument) Description of the document being indexed used after parsing for things like version conflicts.abstract String
Build the_id
to use on requests reindexing into indices using this_id
.static org.apache.lucene.document.Field
Create aField
to store the provided_id
that "stores" the_id
so it can be fetched easily from the index.Methods inherited from class org.elasticsearch.index.mapper.MetadataFieldMapper
getMergeBuilder, parseCreateField, postParse, preParse, syntheticSourceSupport, toXContent, updateableBoolParam
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
checkIncomingMergeType, copyTo, createTypeParserWithLegacySupport, doValidate, doXContentBody, executeScript, fieldType, fullPath, getTotalFieldsCount, hasScript, ignoreMalformed, indexScriptValues, iterator, merge, multiFields, multiFieldsIterator, notFromDynamicTemplates, notInMultiFields, parse, parsesArrayValue, sourceKeepMode, sourcePathUsedBy, supportsParsingObject, syntheticFieldLoader, typeName, validate
Methods inherited from class org.elasticsearch.index.mapper.Mapper
freezeAndDeduplicateFieldType, internFieldName, leafName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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:
indexAnalyzers
in classFieldMapper
-
contentType
- Specified by:
contentType
in 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_id
to use on requests reindexing into indices using this_id
. -
standardIdField
Create aField
to store the provided_id
that "stores" the_id
so it can be fetched easily from the index.
-