Re: Deleted documents and NRT Readers

2018-07-19 Thread Stuart Goldberg
Understood. But I would think that in a tiny program where I add one document and then update it, that the load is so small that it for sure would not have applied the delete. Why am I wrong in thinking this? On Thu, Jul 19, 2018, 5:50 PM Michael McCandless wrote: > Passing applyDeletes=false m

Re: Deleted documents and NRT Readers

2018-07-19 Thread Michael McCandless
Passing applyDeletes=false means Lucene does not have to apply all of its buffered deletes. But, it still may have already applied some deletes, so there's no guarantee that it won't have applied deletes. Mike McCandless http://blog.mikemccandless.com On Thu, Jul 19, 2018 at 3:23 PM, Stuart Gol

Deleted documents and NRT Readers

2018-07-19 Thread Stuart Goldberg
I used NRT readers all the time. I create then with 'applyDeletes' set to false for performance reasons and take the javadoc at its word that my code has to be prepared to deal with deleted documents. I thought I understood that and I wrote my code to be deleted-document-safe. But I have recently