Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 99332 invoked from network); 2 Oct 2006 18:00:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 18:00:24 -0000 Received: (qmail 13664 invoked by uid 500); 2 Oct 2006 18:00:18 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 13641 invoked by uid 500); 2 Oct 2006 18:00:18 -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 13630 invoked by uid 99); 2 Oct 2006 18:00:18 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 11:00:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [169.229.70.167] ([169.229.70.167:36252] helo=rescomp.berkeley.edu) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id D3/93-24395-EA351254 for ; Mon, 02 Oct 2006 11:00:15 -0700 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 489FC5B763; Mon, 2 Oct 2006 11:00:12 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 4408A7F403 for ; Mon, 2 Oct 2006 11:00:12 -0700 (PDT) Date: Mon, 2 Oct 2006 11:00:12 -0700 (PDT) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: Modifying the PrefixQuery In-Reply-To: <8834A84C87A2C148AD46921BB8BFC97C0276C693@S1SE1MAIL.emea1.ad.group> Message-ID: References: <8834A84C87A2C148AD46921BB8BFC97C0276C693@S1SE1MAIL.emea1.ad.group> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N : I want to modify the PrefixQuery so that it instead of casting the : TooManyBooleanClause exception takes out the most frequent N terms : matching the prefix and only searches for those. Is this possible? It should be ... look at the rewrite method of PrefixQuery and the docFreq method of TermEnum. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org