A write.lock file is created after a call to EntityManager.persist. How can I close the index writer and remove hereby the lock file after the call?
We have two applications which write infrequently to the same index. My understanding is that the lock file is to prevent concurrent writing, ideal for this case. If I set the timeout high enough, there should be no problem because persisting takes less than a second and the writing is infrequent. But after the first persist, the file stays until the application is shut down.
I tried to set hibernate.search.default.indexwriter.merge_factor=2, but doesn't help.
Thanks in advance!
|