Re: IndexWriter.addIndexes with LeafReader parameter

2016-01-18 Thread Manner Róbert
pper.wrap(indexReader) returns a CodecReader from an > index reader. > > Regards > Christoph > > > Am 13.01.2016 um 09:09 schrieb Manner Róbert: > >> Unfortunately I can not use that, because I do not want to copy all the >> indexes. Our use case is "archiving

Re: IndexWriter.addIndexes with LeafReader parameter

2016-01-13 Thread Manner Róbert
filtering, and use the writer to write them out. Robert On Tue, Jan 12, 2016 at 8:00 PM, Dawid Weiss wrote: > You can addIndexes(Directory... dirs) -- then you don't have to deal > with CodecReader? > > Dawid > > On Tue, Jan 12, 2016 at 4:43 PM, Manner Róbert wrote: &g

IndexWriter.addIndexes with LeafReader parameter

2016-01-12 Thread Manner Róbert
Hi, we have used lucene 4.7.0 before, we are on the way to upgrade to 5.4.0. The problem I have is that writer.addIndexes now needs CodecReader and does not accept a basic LeafReader what we have. Is there any efficient way to work around that? How would you do it? Query the documents and addDoc