Class 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 Detail

      • RootTypeMapping

        public RootTypeMapping()
    • Method Detail

      • setRouting

        public void setRouting​(RoutingType routing)
      • 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.