Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 55430 invoked from network); 31 Mar 2009 21:18:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Mar 2009 21:18:55 -0000 Received: (qmail 49898 invoked by uid 500); 31 Mar 2009 21:18:53 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 49836 invoked by uid 500); 31 Mar 2009 21:18:53 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 49826 invoked by uid 99); 31 Mar 2009 21:18:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2009 21:18:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yseeley@gmail.com designates 209.85.146.182 as permitted sender) Received: from [209.85.146.182] (HELO wa-out-1112.google.com) (209.85.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2009 21:18:44 +0000 Received: by wa-out-1112.google.com with SMTP id l35so1534272waf.5 for ; Tue, 31 Mar 2009 14:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=AqFDnzQesS8hhM8b0qI8UNLczCbsRuzilB6ogZDvXgk=; b=hX6pUEIFmS2tGFoq5tgrw65qLSNyAnmd0xPpXiWl+qnKkN8DHGuJmaWJAd0GtFIA4q mDgdpqVybE+4vFSDTonUlbJJ9xpViO7aIjSL0rDiTvXPL17CF/gXCPUpiXFIqnyLDKpH E8Vpr/9Iolkt0QhenidNIhcSkmr5io8qGuWxQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Z/1GIdAtVYmOa9aJ22LSUTue6yIFiFsp7hxKKg8WRqzEIvDA4o2bUnaH8FfMai36u+ QYFS/jzdOq4h/v2HlNOhl2o6i8R3QWt8u5h3iWig5wHk737tnOtUMD3NV8qS0xemzVEz 6ALsEZXUPL443iBNDZHSmqLBQjjaPIYFCvi9k= MIME-Version: 1.0 Sender: yseeley@gmail.com Reply-To: yonik@lucidimagination.com Received: by 10.115.47.1 with SMTP id z1mr4665549waj.133.1238534303353; Tue, 31 Mar 2009 14:18:23 -0700 (PDT) In-Reply-To: <8837fb770903311358n77aa2065o5f8f1489f319264@mail.gmail.com> References: <8837fb770903311241p45483892jf58b4779b1e6f14c@mail.gmail.com> <8837fb770903311358n77aa2065o5f8f1489f319264@mail.gmail.com> Date: Tue, 31 Mar 2009 17:18:23 -0400 X-Google-Sender-Auth: 22189a5219ed848f Message-ID: Subject: Re: IndexWriter.deleteDocuments(Query query) From: Yonik Seeley To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Mar 31, 2009 at 4:58 PM, John Wang wrote: > I fail to see the difference of exposing the api to allow for a Query > instance to be passed in vs a DocIdSet. I was commenting specifically on your idea to allow deletion by int[] (docids) on the IndexWriter. DocIdSet is a different issue - it didn't exist when the conversation to add deleteByQuery was going on. -Yonik http://www.lucidimagination.com In this specific case, Query is > essentially a factory to produce a DocIdSetIterator (or Scorer) Isn't it > what DocIdSet is? > Thanks > > -John > > On Tue, Mar 31, 2009 at 12:57 PM, Yonik Seeley > wrote: > >> On Tue, Mar 31, 2009 at 3:41 PM, John Wang wrote: >> > Also, can we expose =A0IndexWriter.deleteDocuments(int[] docids)? >> >> Exposing internal ids from the IndexWriter may not be a good idea >> given that they are transient. >> >> >> -Yonik >> http://www.lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org