Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

drawback addindexes method

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


chandan at ccnep

May 3, 2007, 12:46 AM

Post #1 of 2 (328 views)
Permalink
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. of
documents are buffered in RAM
Using RAMDirectory . So as the index size grows , optimize method will only
increase by indexing time

Can these lines be commented out and call the optimize method only at the
end of indexing process?

Your thoughts please

Thanks
Chandan


steven_parkes at esseff

May 3, 2007, 6:05 AM

Post #2 of 2 (305 views)
Permalink
RE: drawback addindexes method [In reply to]

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 [mailto:chandan [at] ccnep]
Sent: Thursday, May 03, 2007 12:46 AM
To: java-user [at] lucene
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.
of
documents are buffered in RAM
Using RAMDirectory . So as the index size grows , optimize method will
only
increase by indexing time

Can these lines be commented out and call the optimize method only at
the
end of indexing process?

Your thoughts please

Thanks
Chandan



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.