Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 34387 invoked from network); 7 Jul 2006 17:44:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2006 17:44:29 -0000 Received: (qmail 25620 invoked by uid 500); 7 Jul 2006 17:44:27 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 25587 invoked by uid 500); 7 Jul 2006 17:44:27 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 25576 invoked by uid 99); 7 Jul 2006 17:44:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 10:44:27 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of yseeley@gmail.com designates 64.233.166.180 as permitted sender) Received: from [64.233.166.180] (HELO py-out-1112.google.com) (64.233.166.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 10:44:19 -0700 Received: by py-out-1112.google.com with SMTP id w49so3340121pyg for ; Fri, 07 Jul 2006 10:43:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Y9c4J03FQ6sVsQ+bcNLeQGmdPlllP/w1XUZ8BeY4I11S4MWoTqufRwETH9fv3hRh4urKzFs9UXEIkjqnlIGhQPzltecn3RDMYRJvZuS/5dFzC/x6HlbbyLTZyoMF3x2HnPbts+0POV0gAnAe9koj1jucSTLCVDPWgwr3kEdfXM8= Received: by 10.35.90.20 with SMTP id s20mr2373404pyl; Fri, 07 Jul 2006 10:43:27 -0700 (PDT) Received: by 10.35.129.12 with HTTP; Fri, 7 Jul 2006 10:43:27 -0700 (PDT) Message-ID: Date: Fri, 7 Jul 2006 13:43:27 -0400 From: "Yonik Seeley" To: java-dev@lucene.apache.org Subject: Re: [jira] Commented: (LUCENE-565) Supporting deleteDocuments in IndexWriter (Code and Performance Results Provided) In-Reply-To: <20060707130551.GA10773@fermat.math.technion.ac.il> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <14645793.1152156330186.JavaMail.jira@brutus> <20060707130551.GA10773@fermat.math.technion.ac.il> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > When one interleaves adds and deletes, it isn't the case that > indexreaders and indexwriters need to be opened and closed each > interleave. To clarify, higher level (application level) adds and deletes can be managed at a lower level such that index readers and writers aren't continually opened and closed. There are a few ways to do this: - modify IndexWriter, as this patch does - implement add/delete interleaving as a higher level class The big question is, what kind of efficiencies do you get by putting this functionallity in IndexWriter vs a higher level class that uses IndexWriters and IndexReaders? Unless there is a clear performance win, I'd prefer leaving IndexWriter simpler. -Yonik --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org