Because of the requirements, I need to filter some entities to not indexed with insert event. So I custom an eventListener to implement PostInsertEventListener, but the following exception occured:
Code:
Caused by: org.hibernate.HibernateException: Hibernate Search Event listeners not configured, please check the reference documentation and the application's hibernate.cfg.xml
at org.hibernate.search.util.ContextHelper.getSearchFactoryBySFI(ContextHelper.java:32)
But if I extends FullTextIndexEventListener, the exception disappeared.
How can I do this? Thanks in advance.