Class RootTypeMapping
- 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
-
-
Field Summary
-
Fields inherited from class org.hibernate.search.backend.elasticsearch.lowlevel.index.mapping.impl.AbstractTypeMapping
properties
-
-
Constructor Summary
Constructors Constructor Description RootTypeMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDynamicTemplate(NamedDynamicTemplate template)List<NamedDynamicTemplate>getDynamicTemplates()RoutingTypegetRouting()voidmerge(AbstractTypeMapping other)Merge this mapping with another mapping generated by Hibernate Search: Values fordynamic/_routing/dynamic_templatesmapping parameters will be taken from theotherunlessthisprovides a corresponding non-null value. The mapping parameterpropertieswill be merged, using properties defined in boththisandother. Mapping parameters other thandynamicandpropertieswill be those fromthis; those fromotherwill be ignored. If a property is defined on both sides, it will be merged recursively as described above.voidsetRouting(RoutingType routing)-
Methods inherited from class org.hibernate.search.backend.elasticsearch.lowlevel.index.mapping.impl.AbstractTypeMapping
addProperty, getDynamic, getExtraAttributes, getProperties, removeProperty, setDynamic, setExtraAttributes, toString
-
-
-
-
Method Detail
-
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:- Values for
dynamic/_routing/dynamic_templatesmapping parameters will be taken from theotherunlessthisprovides a corresponding non-null value. - The mapping parameter
propertieswill be merged, using properties defined in boththisandother. - Mapping parameters other than
dynamicandpropertieswill be those fromthis; those fromotherwill be ignored. - If a property is defined on both sides, it will be merged recursively as described above.
- Overrides:
mergein classAbstractTypeMapping- Parameters:
other- The other mapping.
- Values for
-
-