lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: free text search with numbers
Date Fri, 01 Jul 2005 13:10:49 GMT

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


Mime
View raw message