Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 49325 invoked from network); 8 Dec 2004 22:31:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Dec 2004 22:31:44 -0000 Received: (qmail 35725 invoked by uid 500); 8 Dec 2004 22:31:36 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 35704 invoked by uid 500); 8 Dec 2004 22:31:36 -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 35683 invoked by uid 99); 8 Dec 2004 22:31:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of john.wang@gmail.com designates 64.233.170.198 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.198) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Dec 2004 14:31:35 -0800 Received: by rproxy.gmail.com with SMTP id z35so248050rne for ; Wed, 08 Dec 2004 14:31:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Ri1EkO3roCd8IN3qBS0g53FUrNYoom5+UnKQeVkoFMXV3iwpyqtzJxuZdeG2nf/N9mmYFmozSwHafbXrdYVHZPQEtsbr55LW4CjvVYrSe98vp9ZB7bxq1KCt+r171JehogjEIU6QX4JX3B9IkhgINvtFWqciiEBBF9t73qzmf0g= Received: by 10.38.83.72 with SMTP id g72mr1165693rnb; Wed, 08 Dec 2004 14:31:32 -0800 (PST) Received: by 10.38.209.23 with HTTP; Wed, 8 Dec 2004 14:31:31 -0800 (PST) Message-ID: <8837fb77041208143159908d0d@mail.gmail.com> Date: Wed, 8 Dec 2004 14:31:31 -0800 From: John Wang Reply-To: John Wang To: lucene-user@jakarta.apache.org Subject: Re: finalize delete without optimize In-Reply-To: <8837fb770412062115795df6a3@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <8837fb770412062115795df6a3@mail.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi folks: I sent this out a few days ago without a response. Please help. Thanks in advance -John On Mon, 6 Dec 2004 21:15:00 -0800, John Wang wrote: > Hi: > > Is there a way to finalize delete, e.g. actually remove them from > the segments and make sure the docIDs are contiguous again. > > The only explicit way to do this is by calling > IndexWriter.optmize(). But this call does a lot more (also merges all > the segments), hence is very expensive. Is there a way to simply just > finalize the deletes without having to merge all the segments? > > If not, I'd be glad to submit an implementation of this feature if > the Lucene devs agree this is useful. > > Thanks > > -John > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org