Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 91490 invoked from network); 1 Jul 2005 13:32:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Jul 2005 13:32:00 -0000 Received: (qmail 46786 invoked by uid 500); 1 Jul 2005 13:31:42 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 46747 invoked by uid 500); 1 Jul 2005 13:31:42 -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 46728 invoked by uid 99); 1 Jul 2005 13:31:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2005 06:31:42 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO,HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.190.217.57] (HELO mail.cordis.lu) (212.190.217.57) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2005 06:31:44 -0700 Received: from mailsvr.INTRASOFT.LU (mail.intrasoft.lu [212.190.217.251]) by mail.cordis.lu (8.13.1/8.13.1) with ESMTP id j61FVbv0026656 for ; Fri, 1 Jul 2005 15:31:37 GMT Received: by mailsvr.INTRASOFT.LU with Internet Mail Service (5.5.2657.72) id ; Fri, 1 Jul 2005 15:31:37 +0200 Message-ID: From: BOUDOT Christian To: java-user@lucene.apache.org Subject: RE: free text search with numbers Date: Fri, 1 Jul 2005 15:31:36 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C57E41.3425BE70" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C57E41.3425BE70 Content-Type: text/plain Thanks for the link. Cheers Chris -----Original Message----- From: Erik Hatcher [mailto:erik@ehatchersolutions.com] Sent: 01 July 2005 15:11 To: java-user@lucene.apache.org Subject: Re: free text search with numbers On Jul 1, 2005, at 8:06 AM, BOUDOT Christian wrote: > It is the first time that I implement a search with Lucene, so > please don't > laugh if my question seam trivial. > > When I enter some text in my free text search the query gets build > correctly > but when I enter number (as string) the query parser seam to ignore > them. > What am I doing wrong? > > > > Query: org.apache.lucene.search.Query > > Parser: org.apache.lucene.queryParser.MultiFieldQueryParser Chris - the answer to this dilemma is here: http://wiki.apache.org/ jakarta-lucene/AnalysisParalysis In short, the analyzer is eating the numbers as it was designed to do - you'll want to adjust the analyzer to achieve the indexing/ searching for numbers somehow. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org ------_=_NextPart_001_01C57E41.3425BE70--