Class RootObjectMapper

All Implemented Interfaces:
Cloneable, Iterable<Mapper>, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment

public class RootObjectMapper extends ObjectMapper
  • Method Details

    • fixRedundantIncludes

      public void fixRedundantIncludes()
      Removes redundant root includes in NestedObjectMapper trees to avoid duplicate fields on the root mapper when isIncludeInRoot is true for a node that is itself included into a parent node, for which either isIncludeInRoot is true or which is transitively included in root by a chain of nodes with isIncludeInParent returning true.
    • clone

      protected ObjectMapper clone()
      Overrides:
      clone in class ObjectMapper
    • dateDetection

      public boolean dateDetection()
      Public API
    • numericDetection

      public boolean numericDetection()
      Public API
    • dynamicDateTimeFormatters

      public DateFormatter[] dynamicDateTimeFormatters()
      Public API
    • dynamicTemplates

      public DynamicTemplate[] dynamicTemplates()
      Public API
    • merge

      public RootObjectMapper merge(Mapper mergeWith, MapperService.MergeReason reason)
      Overrides:
      merge in class ObjectMapper
    • doMerge

      protected void doMerge(ObjectMapper mergeWith, MapperService.MergeReason reason)
      Overrides:
      doMerge in class ObjectMapper
    • doXContent

      protected void doXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Overrides:
      doXContent in class ObjectMapper
      Throws:
      IOException