Package org.elasticsearch.index.mapper
Class IdFieldMapper
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:
- Cloneable,- Iterable<Mapper>,- org.elasticsearch.common.xcontent.ToXContent,- org.elasticsearch.common.xcontent.ToXContentFragment
A mapper for the _id field. It does nothing since _id is neither indexed nor
 stored, but we need to keep it so that its FieldType can be used to generate
 queries.
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class org.elasticsearch.index.mapper.MetadataFieldMapperMetadataFieldMapper.Builder, MetadataFieldMapper.ConfigurableTypeParser, MetadataFieldMapper.FixedTypeParser, MetadataFieldMapper.TypeParserNested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapperFieldMapper.Conflicts, FieldMapper.CopyTo, FieldMapper.MergeValidator<T>, FieldMapper.MultiFields, FieldMapper.Parameter<T>, FieldMapper.Serializer<T>, FieldMapper.SerializerCheck<T>Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContentorg.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
- 
Field SummaryFieldsFields inherited from class org.elasticsearch.index.mapper.FieldMapperCOERCE_SETTING, copyTo, hasScript, IGNORE_MALFORMED_SETTING, indexAnalyzers, mappedFieldType, multiFields, onScriptErrorFields inherited from interface org.elasticsearch.common.xcontent.ToXContentEMPTY_PARAMS
- 
Method SummaryModifier and TypeMethodDescriptionprotected Stringstatic org.apache.lucene.document.FieldvoidpreParse(ParseContext context)Called beforeFieldMapper.parse(ParseContext)on theRootObjectMapper.Methods inherited from class org.elasticsearch.index.mapper.MetadataFieldMappergetMergeBuilder, parseCreateField, postParse, toXContent, updateableBoolParamMethods inherited from class org.elasticsearch.index.mapper.FieldMappercheckIncomingMergeType, copyTo, doValidate, doXContentBody, executeScript, fieldType, hasScript, indexAnalyzers, indexScriptValues, iterator, merge, multiFields, name, notInMultiFields, parse, parsesArrayValue, typeName, validateMethods inherited from class org.elasticsearch.index.mapper.MappersimpleNameMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragmentisFragment
- 
Field Details- 
NAME- See Also:
- Constant Field Values
 
- 
CONTENT_TYPE- See Also:
- Constant Field Values
 
- 
PARSER
 
- 
- 
Method Details- 
preParseDescription copied from class:MetadataFieldMapperCalled beforeFieldMapper.parse(ParseContext)on theRootObjectMapper.- Overrides:
- preParsein class- MetadataFieldMapper
 
- 
idField
- 
contentType- Specified by:
- contentTypein class- FieldMapper
 
 
-