Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 35026 invoked from network); 16 Oct 2008 18:45:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2008 18:45:39 -0000 Received: (qmail 51049 invoked by uid 500); 16 Oct 2008 18:45:33 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 50730 invoked by uid 500); 16 Oct 2008 18:45:33 -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 50719 invoked by uid 99); 16 Oct 2008 18:45:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 11:45:32 -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 (athena.apache.org: domain of prabin.meitei@gmail.com designates 209.85.198.224 as permitted sender) Received: from [209.85.198.224] (HELO rv-out-0506.google.com) (209.85.198.224) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 18:44:25 +0000 Received: by rv-out-0506.google.com with SMTP id g9so1996958rvb.3 for ; Thu, 16 Oct 2008 11:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=mu315HO1MZ5058f0eQ2wI7I4DaqRi+qo6tAW2uVcGZY=; b=ZvONSIWO/feidIuZ7BKO0K7EmG4COar7QasalS8EO6XptyBG5f5Y87IeeZSYYb52Qc 0PcdEZzMiiYCE6aUgTvmSC5GAH3cpqqKX2jnN3sNE6Qgwpy23g5w3pnMRSKMAkf9dpRw oX9tMsfKSdUn2+c3KgJOD4euRnVOOl9cWqxW4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=QGfjMNQ8i0ePQknqodFJ/RCP581HKKQV4pp+SfSEXGceWA8pDSmOJWaqFDpXb7vgNL xUaa428dj1JzZcv+12fmxPN8ZJZYEvQ27NUzMWcnQWC/E6kurJaONMBdQMxwtJ4oi6rr 79z2LlUfsqudCIsuuAC2/S9s+Dy+dscXrKa7A= Received: by 10.141.4.3 with SMTP id g3mr1880031rvi.116.1224182693654; Thu, 16 Oct 2008 11:44:53 -0700 (PDT) Received: by 10.141.22.21 with HTTP; Thu, 16 Oct 2008 11:44:53 -0700 (PDT) Message-ID: <295da8fe0810161144p35b17d16k5ed411a5a945fa71@mail.gmail.com> Date: Fri, 17 Oct 2008 00:14:53 +0530 From: "prabin meitei" To: java-user@lucene.apache.org Subject: using list of items to be excluded while querying MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20519_18943210.1224182693631" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_20519_18943210.1224182693631 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I have a large index of documents of fields "id" "name" and few other. while querying i do want to exclude a list of ids i passed in. for this what i use is Query query = new BooleanQuery(); for (int i=0; i