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
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDynamicTemplate(NamedDynamicTemplate template) 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
-
Constructor Details
-
RootTypeMapping
public RootTypeMapping()
-
-
Method Details
-
getRouting
-
setRouting
-
getDynamicTemplates
-
addDynamicTemplate
-
merge
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
-