HamZuZ wrote:
1)i don't konw : i have to override the SearchMapping class ?? how can i say to hibernate Search to consider my api configuration ??
and ths.
No, you don't have to override
SearchMapping. You need to instantiate an instance and configure your entities using the fluent API. Once you have a configured
SearchMapping instance you have to pass this instance to the Hibernate configuration as a property using the key
hibernate.search.model_mapping (
Environment.MODEL_MAPPING). Alternatively you can provide the fully qualified class name of a search mapping factory which must have a no-arg constructor and a method annotated with
@Factory returning a
SearchMapping instance.
This is all in the
online docs. Have you checked there? If so and it is still unclear let us know. Especially what the problem is so that we can improve the documention.
--Hardy