Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 72614 invoked from network); 1 Feb 2002 17:22:11 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Feb 2002 17:22:11 -0000 Received: (qmail 13626 invoked by uid 97); 1 Feb 2002 17:22:08 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 13588 invoked by uid 97); 1 Feb 2002 17:22:08 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 13577 invoked from network); 1 Feb 2002 17:22:07 -0000 Message-ID: <4BC270C6AB8AD411AD0B00B0D0493DF0EE7EC4@mail.grandcentral.com> From: Doug Cutting To: 'Lucene Users List' Subject: RE: Indexing and Searching happening together Date: Fri, 1 Feb 2002 09:17:57 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Kelvin Tan [mailto:kelvin@relevanz.com] > > True (and it's great) that once an IndexReader is open, no > actions on the IndexWriter affect it. > > However, if an IndexReader is opened _after_ indexing begins, > I suppose it'll throw an exception? Doesn't it mean that when > indexing is taking place, the search engine is effectively down... No, an index is always searchable. It should be possible to open an IndexReader at any time, and a coherent version of the index will be available for search. > I suppose then, that if I still want to have the search > engine up whilst indexing (where indexing takes a non-trivial > amount of time), I'll have to index to a temporary location, > then copy the index files over? No, that is not required. > Alternatively, I guess it's > possible to open an IndexReader _before_ commencement of > indexing and provide this instance of IndexReader to clients > who need to search? This can be a useful technique if you are performing a number of coordinated deletions and insertions to an index, and wish them all to appear at once. Doug -- To unsubscribe, e-mail: For additional commands, e-mail: