Package org.elasticsearch.index.mapper
Class RootObjectMapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.ObjectMapper
org.elasticsearch.index.mapper.RootObjectMapper
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable<Mapper>,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
public class RootObjectMapper extends ObjectMapper
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRootObjectMapper.Builderstatic classRootObjectMapper.Defaultsstatic classRootObjectMapper.TypeParserNested classes/interfaces inherited from class org.elasticsearch.index.mapper.ObjectMapper
ObjectMapper.Dynamic, ObjectMapper.NestedNested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.BuilderContext -
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.ObjectMapper
CONTENT_TYPE, NESTED_CONTENT_TYPE -
Method Summary
Modifier and Type Method Description booleandateDetection()protected voiddoMerge(ObjectMapper mergeWith, MapperService.MergeReason reason)protected voiddoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)DateFormatter[]dynamicDateTimeFormatters()DynamicTemplate[]dynamicTemplates()DynamicTemplatefindTemplate(ContentPath path, java.lang.String name, DynamicTemplate.XContentFieldType matchType)Mapper.BuilderfindTemplateBuilder(ParseContext context, java.lang.String name, DateFormatter dateFormatter)Mapper.BuilderfindTemplateBuilder(ParseContext context, java.lang.String name, DynamicTemplate.XContentFieldType matchType)voidfixRedundantIncludes()Removes redundant root includes inObjectMapper.Nestedtrees to avoid duplicate fields on the root mapper whenisIncludeInRootistruefor a node that is itself included into a parent node, for which eitherisIncludeInRootistrueor which is transitively included in root by a chain of nodes withisIncludeInParentreturningtrue.ObjectMappermappingUpdate(Mapper mapper)Build a mapping update with the provided sub mapping update.RootObjectMappermerge(Mapper mergeWith, MapperService.MergeReason reason)booleannumericDetection()Methods inherited from class org.elasticsearch.index.mapper.ObjectMapper
clone, dynamic, fullPath, getMapper, getParentObjectMapper, isEnabled, iterator, merge, name, nested, nestedTypeFilter, nestedTypePathAsString, parentObjectMapperAreNested, putMapper, toXContent, toXContent, typeName, validate
-
Method Details
-
fixRedundantIncludes
public void fixRedundantIncludes()Removes redundant root includes inObjectMapper.Nestedtrees to avoid duplicate fields on the root mapper whenisIncludeInRootistruefor a node that is itself included into a parent node, for which eitherisIncludeInRootistrueor which is transitively included in root by a chain of nodes withisIncludeInParentreturningtrue. -
mappingUpdate
Description copied from class:ObjectMapperBuild a mapping update with the provided sub mapping update.- Overrides:
mappingUpdatein classObjectMapper
-
dateDetection
public boolean dateDetection() -
numericDetection
public boolean numericDetection() -
dynamicDateTimeFormatters
-
dynamicTemplates
-
findTemplateBuilder
public Mapper.Builder findTemplateBuilder(ParseContext context, java.lang.String name, DynamicTemplate.XContentFieldType matchType) -
findTemplateBuilder
public Mapper.Builder findTemplateBuilder(ParseContext context, java.lang.String name, DateFormatter dateFormatter) -
findTemplate
public DynamicTemplate findTemplate(ContentPath path, java.lang.String name, DynamicTemplate.XContentFieldType matchType) -
merge
- Overrides:
mergein classObjectMapper
-
doMerge
- Overrides:
doMergein classObjectMapper
-
doXContent
protected void doXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Overrides:
doXContentin classObjectMapper- Throws:
java.io.IOException
-