Hello, I have read the parallel reader doc. It says it must have the same number of documents as the other index. When we are using a writer - searcher combination, how can we integrate this parallel reader into game.
Simply, I have some documents, and I just like to mark them, in an efficient way. is there a way? I was having problem with deletes from my index, since I could not delete by a query, I had to store an extra field that was the combination of the two fields I had to delete with. So I was thinking of integrating another index for marking them. but it appears this parallel reader is kind of heavy for the job, since it has to contain the same number of documents as the original index. Best. On Feb 1, 2008 12:02 AM, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > : I have to keep one index though. Is there a way to reproduce an index > from > : an indexReader? > > asuming you have indexes that work in conjunction with eachther they > way you want when using ParallelReader, you should (in theory) be able to > use... > > ParallelReader r = ...; > IndexWriter w = new IndexWRiter(...); > w.addIndexes(new IndexReader[] { r }); > w.close(); > > ...to "combine" those indexes into a single physical index. but i've > never personally tried it. there may be quirks about ParallelReader that > prevent this from working. > > > -Hoss > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >