Loading...
i was using lucene for indexing my textual content, when i removed all of my index files, i have been introduced with a strange “LuceneIndexAccessException(The index is locked)” exception. though my whole directory was empty. it was not suppose to show this kind of exception.
anyway, later i found there is a property called “resolveLock” which is required to enable auto lock resolve option.
hope this will help to those who face such problem.
< bean id="indexFactory"
class="org.springmodules.lucene.index.support.SimpleIndexFactoryBean" >
< property name="directory" ref="fsDirectory"/ >
< property name="create" value="true"/ >
< property name="analyzer" ref="analyzer"/ >
< property name="resolveLock" value="true"/ >
< /bean >
best wishes,







| www.flickr.com |
Leave a reply