Re: efficient ways of updating document

2007-01-05 Thread Erick Erickson
Also, look at the IndexModifier class, which hides a number of the ugly details. Under the covers, I think (although I haven't looked) that it pretty much does exactly what you outlined, at least the recommendation that you do your deletes and adds in batches leads me to think so. Best Erick On

Re: efficient ways of updating document

2007-01-05 Thread Marcelo Ochoa
John: I had implemented a batch (delete,insert,update) operation for the Oracle Lucene Domain Index using OJVMDirectory, see patch: http://issues.apache.org/jira/browse/LUCENE-724 The strategy used in this solution is to enqueue all operations on the table which have a column indexed by Lucene

Re: efficient ways of updating document

2007-01-05 Thread Otis Gospodnetic
John, Batch deletion followed by batch addition is the best practise. Ning Li made some changes that improve the performance of non-batch mass delete/add operations, but I'm not sure what the state of those changes is (whether they are still in Lucene's JIRA, or whether they are in CVS). Otis