lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <karl.wet...@gmail.com>
Subject Re: Help with Lucene Indexer crash recovery
Date Sat, 06 Oct 2007 00:01:33 GMT

5 okt 2007 kl. 21.50 skrev vivek sar:

> Once the writer.addIndexes is done I call writer.optimize()

No biggie, but IndexWriter.addIndexes() will automatically optimize,  
so that is one line of code you can get rid of.

> it may take hours to re-index

/Perhaps/ using IndexWriter.addIndexesNoOptimize(), closing the  
index, making it accessable and then optimizing it in a new thread  
could bring the "master index" up for use noticeable sooner.


-- 
karl

---------------------------------------------------------------------
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