I see, makes better sense now.
The query is a BooleanQuery. Here is what I do:
https://gist.github.com/Kudret/56879bf30fa129e752895305e1db5a80
On Wed, May 10, 2017 at 1:31 PM Michael McCandless <
luc...@mikemccandless.com> wrote:
> IndexWriter simply buffers that Query you passed to deleteDo
IndexWriter simply buffers that Query you passed to deleteDocuments, so
that's very fast.
Only later on will it (lazily) resolve that Query to the docIDs to delete,
which is the costly part, when a merge wants to kick off, or a refresh, or
a commit.
What Query are you using to identify documents