Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 6885 invoked from network); 10 Dec 2002 10:12:55 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 10 Dec 2002 10:12:55 -0000 Received: (qmail 5428 invoked by uid 97); 10 Dec 2002 10:13:45 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 5377 invoked by uid 97); 10 Dec 2002 10:13:44 -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 5322 invoked by uid 98); 10 Dec 2002 10:13:42 -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: When do documents become searchable? Date: Tue, 10 Dec 2002 10:10:30 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 10 Dec 2002 10:10:30.0965 (UTC) FILETIME=[5ED66E50:01C2A034] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: