Hi Rob, Thanks for explaining, that makes sense to me. Patrick
On Fri, Apr 21, 2023 at 7:18 AM Robert Muir <rcm...@gmail.com> wrote: > This is not true: if i call IndexWriter.commit, then i can open an > indexreader and see the documents. > > IndexWriter.flush doesn't do anything at all, really, just moves stuff > from RAM to disk but not in a way that indexreader can see it or > anything, right? > > It doesn't make much sense that this method is public in the API, > definitely adding sequence number makes no sense since nothing was > committed here. > > On Thu, Apr 20, 2023 at 1:28 AM Patrick Zhai <zhai7...@gmail.com> wrote: > > > > Hi folks, > > I just realized that while "commit" returns the sequence number which > represents the latest event that committed in the index, "flush" still > returns nothing. Since they're essentially the same except fsync I wonder > whether there's any specific reason to not do so? > > > > Best > > Patrick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > >