Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 90674 invoked from network); 15 Jun 2007 05:55:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jun 2007 05:55:13 -0000 Received: (qmail 12030 invoked by uid 500); 15 Jun 2007 05:55:10 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 11997 invoked by uid 500); 15 Jun 2007 05:55:10 -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 11982 invoked by uid 99); 15 Jun 2007 05:55:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2007 22:55:09 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ssharma@chambal.com designates 66.249.82.236 as permitted sender) Received: from [66.249.82.236] (HELO wx-out-0506.google.com) (66.249.82.236) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2007 22:55:05 -0700 Received: by wx-out-0506.google.com with SMTP id t8so654687wxc for ; Thu, 14 Jun 2007 22:54:44 -0700 (PDT) Received: by 10.78.138.14 with SMTP id l14mr1081013hud.1181886883814; Thu, 14 Jun 2007 22:54:43 -0700 (PDT) Received: by 10.78.202.9 with HTTP; Thu, 14 Jun 2007 22:54:43 -0700 (PDT) Message-ID: <90530f7c0706142254i1657ef81xa4482f7dec4a02bd@mail.gmail.com> Date: Fri, 15 Jun 2007 11:24:43 +0530 From: "Sawan Sharma" To: java-user@lucene.apache.org Subject: Re: efficient way to filter out unwanted results In-Reply-To: <46721945.4040808@ai.sri.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_39967_469979.1181886883790" References: <46721945.4040808@ai.sri.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_39967_469979.1181886883790 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello Jay, I am not sure up to what level I understood your problem . But as far as my assumption, you can try HitCollector class and its collect method. Here you can get DocID for each hit and can remove while searching. Hope it will be useful. Sawan (Chambal.com inc. NJ USA) On 6/15/07, yu wrote: > > Hi everyone, > > I am trying to remove several docs from search results each time I do > query. The docs can be identified by an exteranl ids whcih are > saved/indexed. I could use a Query or QueryFilter to achieve this but > not sure if it's the most efficient way to do that. > Anyone has any experience or idea? > Thanks! > > Jay > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_39967_469979.1181886883790--