I could narrow it down now I think.
I'm running the complete re-indexing like this
Code:
@Test
public void runMassIndexer() {
try {
Search.getFullTextSession(sessionFactory.getCurrentSession()).flushToIndexes();
Search.getFullTextSession(sessionFactory.getCurrentSession()).createIndexer().purgeAllOnStart(true).cacheMode(CacheMode.IGNORE)
.optimizeOnFinish(true).startAndWait();
} catch (HibernateException e) {
fail("HibernateException while rebuilding the lucene index");
} catch (InterruptedException e) {
fail("InterruptedException while rebuilding the lucene index");
}
}
Which is not working anymore.
However when I start the indexer with just a single class as argument for "createIndexer()" it works.
No matter which of my "@Indexed"-marked classes I enter there.
If I enter a second class its not working. Hope this could help