java.lang.Object
org.hibernate.search.backend.elasticsearch.lowlevel.index.mapping.impl.AbstractTypeMapping
org.hibernate.search.backend.elasticsearch.lowlevel.index.mapping.impl.RootTypeMapping

public class RootTypeMapping extends AbstractTypeMapping
An object representing Elasticsearch type mappings. See https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#mapping-type
  • Constructor Details

    • RootTypeMapping

      public RootTypeMapping()
  • Method Details

    • getRouting

      public RoutingType getRouting()
    • setRouting

      public void setRouting(RoutingType routing)
    • getDynamicTemplates

      public List<NamedDynamicTemplate> getDynamicTemplates()
    • addDynamicTemplate

      public void addDynamicTemplate(NamedDynamicTemplate template)
    • merge

      public void merge(AbstractTypeMapping other)
      Merge this mapping with another mapping generated by Hibernate Search:
      1. Values for dynamic/_routing/dynamic_templates mapping parameters will be taken from the other unless this provides a corresponding non-null value.
      2. The mapping parameter properties will be merged, using properties defined in both this and other.
      3. Mapping parameters other than dynamic and properties will be those from this; those from other will be ignored.
      4. If a property is defined on both sides, it will be merged recursively as described above.
      Overrides:
      merge in class AbstractTypeMapping
      Parameters:
      other - The other mapping.