lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Parkes" <>
Subject RE: drawback addindexes method
Date Thu, 03 May 2007 13:05:07 GMT
See IndexWriter#addIndexesNoOptimize, released with 2.1. Note that it
doesn't optimize before or after, so if you want an optimize at the end,
you need to ask for it manually.

-----Original Message-----
From: Chandan Tamrakar [] 
Sent: Thursday, May 03, 2007 12:46 AM
Subject: drawback addindexes method


I found that IndexWriter.addIndexes(Directory[]) always calls optimize
method twice 
I am indexing a documents in batches , i.e I call this method when X no.
documents are buffered in RAM
Using RAMDirectory . So as the index size grows , optimize method will
increase by indexing time
Can these lines be commented out and call the optimize method only at
end of indexing process?
Your thoughts please


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message