On 8/11/06, jason rutherglen <[EMAIL PROTECTED]> wrote:
Why does the deleteByQuery method and the DirectUpdateHandler2 not use the 
existing IndexSearcher for deleting.  Why does it open it's own Searcher?

A couple of reasons:
- you can't overlap deletes and adds, so you would have to close
whatever reader you used to do deletes before opening a new
IndexWriter and adding more documents.
- you want deletes and adds visible at the same time.  when
overwriting a document you want the old one to disappear at a
different time from when the new one is visible.

-Yonik

Reply via email to