Re: Lucene commit

2016-08-22 Thread Paul Masurel
Awesome! Thank you very much! On Mon, Aug 22, 2016 at 3:45 PM, Christoph Kaser wrote: > Hello Paul, > > this is already possible using > DirectoryReader.openIfChanged(indexReader,indexWriter). > This will give you an indexreader that already "sees" all changes made by > the writer (up to that

Re: Lucene commit

2016-08-21 Thread Christoph Kaser
Hello Paul, this is already possible using DirectoryReader.openIfChanged(indexReader,indexWriter). This will give you an indexreader that already "sees" all changes made by the writer (up to that point), even though the changes were not yet committed: https://lucene.apache.org/core/6_1_0/core

Lucene commit

2016-08-21 Thread Paul Masurel
Hi, If I understand correctly, Lucene indexing threads are working on their own individual segment. When a thread has enough documents in its segment, it flushes it on disc and starts a new one. But segments are only searchable when they are commited. Now my question is, wouldn't it be nice to be