Hi,
im testing around with Hibernate search and i got a Database with thousands of records which need to be indexed. But the MassIndexer does nothing.
Im Using this code:
Code:
FullTextSession session = Search.getFullTextSession((Session) entityManager.getDelegate());
MassIndexerProgressMonitor monitor = new SimpleIndexingProgressMonitor(1);
try {
session.createIndexer()
.progressMonitor( monitor )
.startAndWait();
}
catch (InterruptedException e) {
e.printStackTrace();
}
It is wrapped in a @Transactional method and my Entities are created with Roo but also annotated with @Entity. The above code just creates the Index if it is not there but actually does not work. Indexing manually with session.index(instance) works fine but well it takes its time ;).
Can someone help me with this ? I Tried some other options with threadcounts and so on but the result is all the same. It just hankgs up.