Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 87790 invoked from network); 25 Sep 2006 17:36:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Sep 2006 17:36:17 -0000 Received: (qmail 73687 invoked by uid 500); 25 Sep 2006 17:36:16 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 73151 invoked by uid 500); 25 Sep 2006 17:36:14 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 73140 invoked by uid 99); 25 Sep 2006 17:36:13 -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, 25 Sep 2006 10:36:13 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=lists@nabble.com; spf=pass X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: pass (idunn.apache.osuosl.org: domain nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] ([72.21.53.35:34940] helo=talk.nabble.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id F3/5D-13750-B8318154 for ; Mon, 25 Sep 2006 10:36:12 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GRuN9-00059L-Qk for java-dev@lucene.apache.org; Mon, 25 Sep 2006 10:36:03 -0700 Message-ID: <6491379.post@talk.nabble.com> Date: Mon, 25 Sep 2006 10:36:03 -0700 (PDT) From: djd0383 To: java-dev@lucene.apache.org Subject: Re: Searching with "1" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ddigmann@formos.com References: <6456507.post@talk.nabble.com> <6456825.post@talk.nabble.com> <6457067.post@talk.nabble.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N My QueryParser looks like this: query = QueryParser.parse("1*","allText",analyzer); analyzer is predetermited for this class. Is there something special I should be setting in this to allow for this search string? Thanks again! Doron Cohen wrote: > > djd0383 wrote on 22/09/2006 17:01:47: >> >> And why would Lucene be doing that now? That just doesn't seem to be the >> right thing to do. >> > > This would depend on the analyzer being used. > It puzzles me that you say the user query is "1" but the query that throws > the exception is PrefixQuery. > Do you create the Prefix query programmatically, or do you use > QueryParser? > QueryParser would create a prefix query for "1*" but not for "1". > If you list a short snippet of code that you use for the search this would > help, e.g. something like: > ... > String qtxt = "1"; > QueryParser qp = new QueryParser("fieldName", new StandardAnalyzer()); > Query q = qp.parse(qtxt); > ... > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > > > -- View this message in context: http://www.nabble.com/Searching-with-%221%22-tf2320552.html#a6491379 Sent from the Lucene - Java Developer mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org