Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 699 invoked from network); 9 Feb 2006 21:47:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Feb 2006 21:47:03 -0000 Received: (qmail 5399 invoked by uid 500); 9 Feb 2006 21:46:54 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 5375 invoked by uid 500); 9 Feb 2006 21:46:54 -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 5357 invoked by uid 99); 9 Feb 2006 21:46:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 13:46:54 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of kdutcher@gmail.com designates 64.233.184.203 as permitted sender) Received: from [64.233.184.203] (HELO wproxy.gmail.com) (64.233.184.203) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 13:46:53 -0800 Received: by wproxy.gmail.com with SMTP id 71so232336wri for ; Thu, 09 Feb 2006 13:46:32 -0800 (PST) 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:references; b=DDExqgHy220xzkmaOdbK8TBcjaP4HMV21InJwtTKEG7vzGzuaCZFZLAmUQusqlqRTt1hfG3UlTNxWjreDFPZXPjFiOSvYcoIRc9n52orxPfPCBgBmR8/EUO8HhiTkeqteffFdoPOK6Y8SycOOKRLBbXtItEjXox1YGk7nYpu0pM= Received: by 10.54.152.14 with SMTP id z14mr6759081wrd; Thu, 09 Feb 2006 13:46:32 -0800 (PST) Received: by 10.54.67.12 with HTTP; Thu, 9 Feb 2006 13:46:32 -0800 (PST) Message-ID: Date: Thu, 9 Feb 2006 16:46:32 -0500 From: Kevin Dutcher To: java-user@lucene.apache.org Subject: Re: Too many required clauses for a BooleanQuery In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11132_5617240.1139521592053" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_11132_5617240.1139521592053 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks Hoss... You're absolutely right! Kevin On 2/9/06, Chris Hostetter wrote: > > > : I need all the documents returned from the search and am manipulating > the > : results with a custom HitCollector, therefore I can't use filters. > > I don't understand this comment. There are certianly methods in the > Searchble interface that allow you to use both a Filter and a HitCollecto= r > together -- as for "need all the documents returned from the search" ... > I'm not suggesting you filter out any docs your query doesn't allready > restrict out because of hte required clauses. I'm just saying that > instead of a few dozen required clauses, you use a Filter like the one > previously posted in this thread. if you need to combine those "required= " > filters with other optional condition,s you cna do that using a > ChainedFilter (or writting your own custom Filter that unions the BitSets > yourself) > > > -Hoss > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_11132_5617240.1139521592053--