Loading... Cancel

springmodule - lucene R

July 8th, 2007

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,

Total 1 response found

Close
  •   Redstar

    Thu Jan 70 06:33

    Hi Hasan,

    Thanks for sharing this with us. Hope you are fine, and take also some time for your self..

Posted in Java, lucene