Package org.elasticsearch.index.mapper
Class MetadataFieldMapper
- java.lang.Object
-
- org.elasticsearch.index.mapper.Mapper
-
- org.elasticsearch.index.mapper.FieldMapper
-
- org.elasticsearch.index.mapper.MetadataFieldMapper
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Mapper>
,ToXContent
,ToXContentFragment
- Direct Known Subclasses:
AllFieldMapper
,FieldNamesFieldMapper
,IdFieldMapper
,IgnoredFieldMapper
,IndexFieldMapper
,RoutingFieldMapper
,SeqNoFieldMapper
,SourceFieldMapper
,TypeFieldMapper
,VersionFieldMapper
public abstract class MetadataFieldMapper extends FieldMapper
A mapper for a builtin field containing metadata about a document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetadataFieldMapper.Builder<T extends MetadataFieldMapper.Builder,Y extends MetadataFieldMapper>
static interface
MetadataFieldMapper.TypeParser
-
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.CopyTo, FieldMapper.MultiFields
-
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.BuilderContext
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFields
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MetadataFieldMapper(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Settings indexSettings)
-
Method Summary
Modifier and Type Method Description MetadataFieldMapper
merge(Mapper mergeWith)
Return the merge ofmergeWith
into this.void
postParse(ParseContext context)
Called afterFieldMapper.parse(ParseContext)
on theRootObjectMapper
.abstract void
preParse(ParseContext context)
Called beforeFieldMapper.parse(ParseContext)
on theRootObjectMapper
.-
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
clone, contentType, copyTo, createFieldNamesField, doMerge, doXContentAnalyzers, doXContentBody, doXContentDocValues, fieldType, indexOptionToString, iterator, name, parse, parseCreateField, termVectorOptionsToString, toXContent, typeName, updateFieldType
-
Methods inherited from class org.elasticsearch.index.mapper.Mapper
simpleName
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
MetadataFieldMapper
protected MetadataFieldMapper(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Settings indexSettings)
-
-
Method Detail
-
preParse
public abstract void preParse(ParseContext context) throws java.io.IOException
Called beforeFieldMapper.parse(ParseContext)
on theRootObjectMapper
.- Throws:
java.io.IOException
-
postParse
public void postParse(ParseContext context) throws java.io.IOException
Called afterFieldMapper.parse(ParseContext)
on theRootObjectMapper
.- Throws:
java.io.IOException
-
merge
public MetadataFieldMapper merge(Mapper mergeWith)
Description copied from class:Mapper
Return the merge ofmergeWith
into this. Boththis
andmergeWith
will be left unmodified.- Overrides:
merge
in classFieldMapper
-
-