| I am upgrading hibernate-search from 5.5.8.Final to 5.9.1.Final, and after upgraded, I encountered this issue. When using 5.5.8.Final, I run the following code on slave node to rebuild all indexes, and the JMS queue will have x messages(x = count of all entities). And after upgraded to 5.9.1.Final, it will have only 1 message for each type of entities, and I have to move this code to master node for workaround:
FullTextEntityManager fullTextEntityManager = Search.getFullTextEntityManager(entityManager);
fullTextEntityManager
.createIndexer()
.batchSizeToLoadObjects(batchSize)
.cacheMode(CacheMode.NORMAL)
.idFetchSize(idFetchSize)
.start();
|