Hi,
I recently integrated search in hibernate project. I am having some issue.
I am calling method:
Code:
fullTextSession.createIndexer().startAndWait();
Earlier it worked fine, but once it gave an exception for purging issue- "Unable to purge all from Lucene index: foo.bar.User". It keeps repeating this exception for different entities. After that I tried many things but it does not seem to work. I tried deleting the index folder and run the indexer again but didnt work. I tried setting purging to false to avoid the exception as per the code below (along with it added some optimization that would help solve the issue as per one website.):
Code:
fullTextSession.createIndexer()
.purgeAllOnStart(false)
.optimizeAfterPurge(true)
.optimizeOnFinish(true)
.batchSizeToLoadObjects(30)
.threadsForSubsequentFetching(8)
.threadsToLoadObjects(4)
.threadsForIndexWriter(3)
.cacheMode(CacheMode.NORMAL)
.startAndWait();
But it still gives the same exception. My environment is Linux. The search jar versions are:
hibernate3.jar
hibernate-search-3.4.0.Final.jar
hibernate-jpa-2.0-api-1.0.0.Final.jar
lucene-core-3.1.0.jar.
Could you please help me understand how to resolve this issue?