Hi,
The main exception is: org.hibernate.HibernateException: could not init listeners (without any stacktrace)
I found the SearchException : No document id in: MyClassDefinition when I used the debugger.
I do not understand why I get the HibernateException becuase I had to my configuration the good listeners
Code:
configuration.setListener("post-update", new FullTextIndexEventListener());
configuration.setListener("post-insert", new FullTextIndexEventListener());
configuration.setListener("post-delete", new FullTextIndexEventListener());
configuration.setListener("post-collection-recreate", new FullTextIndexEventListener());
configuration.setListener("post-collection-remove", new FullTextIndexEventListener());
configuration.setListener("post-collection-update", new FullTextIndexEventListener());
String[] listeners = new String[] {DefaultFlushEventListener.class.getName(), FullTextIndexEventListener.class.getName()};
configuration.setListeners("flush", listeners);
And I set hibernate.search.autoregister_listeners to false.
Regards,
Matti