I am trying to use the spellchecker plugin with Lucene 1.2. I get the
following exception when my SpellIndexer class tries to create the spell
index. The new directory is being created with all the correct
permissions. There is no write.lock file being created. Has someone run
into similar issue? Does this have to do with lucene1.2?

 

Exception in thread "main" java.io.IOException: couldn't delete
write.lock

        at org.apache.lucene.store.FSDirectory.deleteFile(Unknown
Source)

        at org.apache.lucene.index.IndexReader.unlock(Unknown Source)

        at
org.apache.lucene.search.spell.SpellChecker.indexDictionnary(Unknown
Source)

        at
com.unisource.ecom.search.lucene.SpellIndexer.createSpellIndex(SpellInde
xer.java:35)

        at
com.unisource.ecom.search.lucene.SpellIndexer.main(SpellIndexer.java:56)

 

Thanks,

Veda

Reply via email to