Stephane Bailliez wrote:
[...]
try {
   writer = new IndexWriter(directory, analyzer, false)
} catch (IOException e){
    writer = new IndexWriter(directory, analyzer, true);
}

On a related note, the code above does not work if the index does not exist because of the lock created by the first IndexWriter that is still lying around.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to