Hello,
I get a strange behaviour after migrating Hibernate seach from 3.2.1 to 3.3.0: some queries return duplicate objects.
The only thing I did in order to use the version 3.3 is to delete listeners as below:
Code:
configuration.setProperty("hibernate.search.autoregister_listeners", "false");
String fullTextIndexListener = FullTextIndexEventListener.class.getName();
configuration.setListener("post-update", fullTextIndexListener);
configuration.setListener("post-insert", fullTextIndexListener);
configuration.setListener("post-delete", fullTextIndexListener);
configuration.setListener("post-collection-recreate", fullTextIndexListener);
configuration.setListener("post-collection-remove", fullTextIndexListener);
configuration.setListener("post-collection-update", fullTextIndexListener);
String[] listeners = new String[] {DefaultFlushEventListener.class.getName(), fullTextIndexListener};
configuration.setListeners("flush", listeners);
I tried using the querybuilder to query my failing queries and I get exactly the same result : duplicate objects.
Is the behaviour of listeners different? What did I miss? Have you an idea?
Thanks in advance,