Hi,
I have a method in my hibernate Search application. I do not know why sometimes when i execute
Code:
fullTextSession.createIndexer().startAndWait();
it gives me an exception:
org.hibernate.search.SearchException: Unable to purge all from Lucene index: class com.myorg.entity.ExpresionImagenEntity
and this:
org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@./var/lucene/hibernate/test/com.myorg.entity.MyEntity/write.lock
My index files have 777 as permissions.
Does anybody know what should be the configuration or the way to call the createIndexer? Why it keeps telling me this exception? could it be my hibernate session?
I don't really know why sometimes works and others not...
Thanks in advance.