Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 26261 invoked from network); 22 Sep 2004 14:31:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Sep 2004 14:31:27 -0000 Received: (qmail 9379 invoked by uid 500); 22 Sep 2004 14:31:18 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 9334 invoked by uid 500); 22 Sep 2004 14:31:17 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 9319 invoked by uid 99); 22 Sep 2004 14:31:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [203.200.8.84] (HELO ctsinblrsxid.cts.com) (203.200.8.84) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 22 Sep 2004 07:31:16 -0700 Received: from ctsinrmzsxub.cts.com ([10.236.168.5]) by ctsinblrsxid with tr end_isnt_name_B; Wed, 22 Sep 2004 20:01:07 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: RE: WildCardQuery Date: Wed, 22 Sep 2004 20:01:07 +0530 Message-ID: <53CCF72FECD62346ADC714878C15EB0C3C6BD5@ctsinrmzsxub.cts.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: WildCardQuery Thread-Index: AcSfMoYWNNEUW2AdQ2S2vbz6h5/U/wAY4LpwAEacErA= From: "Raju, Robinson (Cognizant)" To: "Lucene Users List" X-imss-version: 2.0 X-imss-result: Passed X-imss-scores: Clean:56.8026 C:20 M:1 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi , I think it doesn't have anything to do with number of characters with a wildcard. Because 'z*' works and 'a*' does not. Does lucene have a limitation on the number of hits fetched ? The error that I get is=0D org.apache.lucene.search.BooleanQuery$TooManyClauses at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:79) at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:71) at org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java:61) at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:228) at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:162) at org.apache.lucene.search.Query.weight(Query.java:84) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:85) at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.j ava:251) java.lang.NullPointerException at org.apache.lucene.search.MultiSearcherThread.hits(ParallelMultiSearcher. java:281) at org.apache.lucene.search.ParallelMultiSearcher.search(ParallelMultiSearc her.java:85) at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:64) at org.apache.lucene.search.Hits.(Hits.java:43) at org.apache.lucene.search.Searcher.search(Searcher.java:33) at com.abcea.oos.search.helper.TestSearcher.search(TestSearcher.java:161) at com.abcea.oos.search.helper.TestSearcher.main(TestSearcher.java:270) -----Original Message----- From: Raju, Robinson (Cognizant)=0D Sent: Tuesday, September 21, 2004 10:21 AM To: 'Lucene Users List' Subject: WildCardQuery Is there a limitation in Lucene when it comes to wildcard search ?=0D Is it a problem if we use less than 3 characters along with a wildcard(*). Gives me error if I try using 45* , *34 , *3 ..etc .=0D Too Many Clauses Error Doesn't happen if '?' is used instead of '*'. The intriguing thing is , that it is not consistent . 00* doesn't fail. Am I missing something ? Robin This e-mail and any files transmitted with it are for the sole use of the= intended recipient(s) and may contain confidential and privileged= information. If you are not the intended recipient, please contact the sender by reply= e-mail and destroy all copies of the original message.=0D Any unauthorised review, use, disclosure, dissemination, forwarding,= printing or copying of this email or any action taken in reliance on this= e-mail is strictly=0D prohibited and may be unlawful. --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org