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