lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane Bailliez <sbaill...@apache.org>
Subject Re: Indexes auto creation
Date Mon, 13 Jun 2005 16:55:09 GMT
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message