Thanks for the link.

Cheers

Chris

-----Original Message-----
From: Erik Hatcher [mailto:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to