Package org.hibernate.search.impl
Class SearchMappingBuilder
java.lang.Object
org.hibernate.search.impl.SearchMappingBuilder
package class extracting the SearchMappingFactory if needed
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchMappingThis factory method takes a SearchConfiguration object and returns a SearchMapping object which defines the programmatic model for indexing entities and fields.
-
Method Details
-
getSearchMapping
This factory method takes a SearchConfiguration object and returns a SearchMapping object which defines the programmatic model for indexing entities and fields. Throws SearchException: 1) No @Factory found 2) Multiple @Factory found 3) hibernate.search.model_mapping defines a class that cannot be found 4) Cannot invoke the @Factory method to get new instance of SearchMapping- Parameters:
cfg- the search configuration- Returns:
- SearchMapping
-