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:
java.lang.Cloneable,java.lang.Iterable<Mapper>,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
public class IdFieldMapper extends MetadataFieldMapper
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 Summary
Nested Classes Modifier and Type Class Description static classIdFieldMapper.DefaultsNested 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.Conflicts, FieldMapper.CopyTo, FieldMapper.MergeValidator<T>, FieldMapper.MultiFields, FieldMapper.Parameter<T>, FieldMapper.Serializer<T>, FieldMapper.SerializerCheck<T> -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTENT_TYPEstatic java.lang.StringNAMEstatic MetadataFieldMapper.TypeParserPARSERFields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, IGNORE_MALFORMED_SETTING, indexAnalyzers, mappedFieldType, multiFields -
Method Summary
Modifier and Type Method Description protected java.lang.StringcontentType()voidpreParse(ParseContext context)Called beforeFieldMapper.parse(ParseContext)on theRootObjectMapper.Methods inherited from class org.elasticsearch.index.mapper.MetadataFieldMapper
getMergeBuilder, parseCreateField, postParse, toXContent, updateableBoolParamMethods inherited from class org.elasticsearch.index.mapper.FieldMapper
checkIncomingMergeType, copyTo, createFieldNamesField, doValidate, doXContentBody, fieldType, indexAnalyzers, iterator, merge, multiFields, name, parse, parsesArrayValue, typeName, validate
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE- See Also:
- Constant Field Values
-
PARSER
-
-
Method Details
-
preParse
Description copied from class:MetadataFieldMapperCalled beforeFieldMapper.parse(ParseContext)on theRootObjectMapper.- Overrides:
preParsein classMetadataFieldMapper
-
contentType
protected java.lang.String contentType()- Specified by:
contentTypein classFieldMapper
-