Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 94916 invoked from network); 10 Sep 2009 09:11:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Sep 2009 09:11:52 -0000 Received: (qmail 31215 invoked by uid 500); 10 Sep 2009 09:11:50 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 31127 invoked by uid 500); 10 Sep 2009 09:11:50 -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 31117 invoked by uid 99); 10 Sep 2009 09:11:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2009 09:11:50 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [85.25.71.29] (HELO mail.troja.net) (85.25.71.29) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2009 09:11:38 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id AB92C45EFC7 for ; Thu, 10 Sep 2009 11:11:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.troja.net Received: from mail.troja.net ([127.0.0.1]) by localhost (megaira.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UvqXjTZmDid2 for ; Thu, 10 Sep 2009 11:11:08 +0200 (CEST) Received: from VEGA (port-83-236-62-3.dynamic.qsc.de [83.236.62.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTPSA id 60554D36003 for ; Thu, 10 Sep 2009 11:11:08 +0200 (CEST) From: "Uwe Schindler" To: References: <4AA8BB8C.6050604@prometa.de> Subject: RE: TooManyClauses by wildcard queries Date: Thu, 10 Sep 2009 11:11:05 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4AA8BB8C.6050604@prometa.de> Thread-Index: Acox8swgdQzjHP60StyWGevBksU/AQAA7RDQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Checked: Checked by ClamAV on apache.org Or use Lucene 2.9, it automatically uses constant score mode in wild card queries, if needed. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: Patricio Galeas [mailto:galeas@prometa.de] > Sent: Thursday, September 10, 2009 10:41 AM > To: java-user@lucene.apache.org > Subject: TooManyClauses by wildcard queries > > Hi all, > > I get the TooManyClauses exception by some wildcard queries like : > (a) de* > (b) country AND de* > (c) ma?s* AND de* > > I'm not sure how to apply the solution proposed in LuceneFAQ for the > case of WildcardQueries like the examples above. > > Can you confirm if it is the right procedure? > > 1. Override QueryParser.getWildcardQuery() to return a ConstantScoreQuery. > 2. Break up the query to identify the wildcard query part. > 3. Create a custom Filter for the wildcard query > 4. Create the final query using the custom filter. > > If the item 2. is right, can you suggest me an optimal way to do that? > > Thank you > Patricio > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org