Re: Merging with IndexWriter.addIndexes(...)

2005-12-08 Thread Doug Cutting
J.J. Larrea wrote: So... I notice that both IndexWriter.addIndexes(...) merge methods start and end with calls to optimize() on the target index. I'm not sure whether that is causing the unpacking and repacking I observe, but it does wonder whether they truly need to be there: I don't recall

Merging with IndexWriter.addIndexes(...)

2005-11-28 Thread J.J. Larrea
My application needs to simultaneously process record additions and updates with one pass through a database. That's not in itself a problem: I open an IndexReader on the existing index to mark the prior versions of updated records as deleted Documents, and an IndexWriter on a new empty index t