I have already integrate Spring MVC+ Spring Framework 4 + Hibernate ORM 4.
Now I want to use full text search in hibernate search.
So, How to Integrate Spring Framework 4 with Hibernate Search 5?
I have already integrate Spring MVC+ Spring Framework 4 + Hibernate ORM 4.
Now I want to use full text search in hibernate search.
So, How to Integrate Spring Framework 4 with Hibernate Search 5?
According to the official documentation this should be as simple as:
<property name="hibernate.search.default.directory_provider" value="filesystem"/>
and <property name="hibernate.search.default.indexBase" value="/var/lucene/indexes"/>
to the Hibernate configuration. Alternatively, you can choose a different provider.FullTextSession
as Search.getFullTextSession(sessionFactory.getCurrentSession())
, or if using an EntityManager, obtain a FullTextEntityManager
as Search.getFullTextEntityManager(entityManager)
. It is assumed that sessionFactory
or entityManager
is injected using Spring.Give this a try and if you face any specific problem you can raise them as separate questions.