From lucene-user-return-534-qmlist-jakarta-archive-lucene-user=jakarta.apache.org@jakarta.apache.org Wed Dec 05 06:46:00 2001 Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 91130 invoked from network); 5 Dec 2001 06:46:00 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Dec 2001 06:46:00 -0000 Received: (qmail 13291 invoked by uid 97); 5 Dec 2001 06:46:10 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 13247 invoked by uid 97); 5 Dec 2001 06:46:09 -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 13236 invoked from network); 5 Dec 2001 06:46:09 -0000 From: jean-christian.gagne@prasahewitt.ch X-Authentication-Warning: l4dupfw42.hewitt.com: noaccess set sender to using -f X-Lotus-FromDomain: HEWITT ASSOCIATES NA To: "Lucene Users List" Message-ID: <86256B19.00251AE5.00@lintng1.hewitt.com> Date: Wed, 5 Dec 2001 07:45:11 +0100 Subject: Re: existing or not existing Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > This is what I do, but frankly it's a little scary. > > Basically, if your open fails for some other reason, it >blows away your index. > > > I think it would make sense to follow the "standard" >of, if that flag is true, to make the index if needed and >use it if it exists. > > To simply clear the index completely should be another >mechanism that the user would call if they really wanted >to overwrite an index with a new one. I agree with you. To make sure that I don't overwrite an existing index just because the open failed, I won't rely on the exception but rather check for the presence of the segment file, as suggested in another reply. JCG -- To unsubscribe, e-mail: For additional commands, e-mail: