On 9/24/07, climbingrose <[EMAIL PROTECTED]> wrote:
> I notice that in DUH2, everytime a new document is added, the searcher is
> closed.

Keep in mind that for the version you are looking at, the open
searcher is used *only* for deleting docs... hence if it is open, then
there are pending deletes to be flushed and it must be closed before
the IndexWriter is opened.

This is done lazily so that back-to-back delete-by-query commands
don't have to keep opening and closing the searcher.  For back-to-back
adds, the searcher will remain closed and the writer will remain open,
so nothing is being open+closed per add.


-Yonik

Reply via email to