Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 22790 invoked from network); 10 Dec 2002 13:07:11 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 10 Dec 2002 13:07:11 -0000 Received: (qmail 6939 invoked by uid 97); 10 Dec 2002 13:08:02 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 6808 invoked by uid 97); 10 Dec 2002 13:08:01 -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 6706 invoked by uid 98); 10 Dec 2002 13:08:00 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Originating-IP: [194.130.58.131] From: "Ashley Collins" To: lucene-user@jakarta.apache.org Bcc: Subject: Re: When do documents become searchable? Date: Tue, 10 Dec 2002 13:06:47 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 10 Dec 2002 13:06:47.0943 (UTC) FILETIME=[FF353170:01C2A04C] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Excellent. Thanks. >From: Otis Gospodnetic >Reply-To: "Lucene Users List" >To: Lucene Users List >Subject: Re: When do documents become searchable? >Date: Tue, 10 Dec 2002 05:00:36 -0800 (PST) > >I believe you can just call optimize() and then open a new >IndexSearcher (when you detect that the index changed). That should >let you find the newly added docs, too. > >Otis > >--- Ashley Collins wrote: > > > > I'm keeping an IndexWriter open so new documents can be indexed as > > they > > arrive. > > > > I open a new IndexSearcher every time a user runs a search. > > > > It seems that search results don't include all documents until I > > restart the > > application (which calls IndexWriter.optimize() then > > IndexWriter.close()). > > > > Should I be able to keep an IndexWriter open all the time? And, is > > calling > > optimize() periodically enough to flush data to disk and make it > > searchable? > > > > Thanks in advance. > > Ashley > > > > > > > > > > > > > > _________________________________________________________________ > > Add photos to your messages with MSN 8. Get 2 months FREE*. > > http://join.msn.com/?page=features/featuredemail > > > > > > -- > > To unsubscribe, e-mail: > > > > For additional commands, e-mail: > > > > > > >__________________________________________________ >Do you Yahoo!? >Yahoo! Mail Plus - Powerful. Affordable. Sign up now. >http://mailplus.yahoo.com > >-- >To unsubscribe, e-mail: > >For additional commands, e-mail: > _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: For additional commands, e-mail: