lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Cherouvim ...@eworx.gr>
Subject SpellChecker locks folder
Date Wed, 22 Apr 2009 08:27:36 GMT
Hello

After I call the SpellChecker.indexDictionary method the directory which 
contained the lucene index is locked. I cannot rename of delete the 
folder (windows).

In the source of SpellChecker lines 352-353 I see that after the 
indexing is done the index is reopened:
searcher.close();
searcher = new IndexSearcher(this.spellIndex);

Why does that second line exist at all?

thanks
Ioannis


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message