hi, Lucene doesn't have the notion of numbers, just strings and so these have to match exactly. Probably one of your numbers has been processed to remove leading zeros, make sure you apply the same function to the query. A QueryParser will apply an Analyzer automatically, if you build the query programmatically you have to run the Analyzer yourself. All what is indexed is analyzed, unless it's explicitly disabled (using UNTOKENIZED) Using Luke you can inspect your index and "see" how it's being stored in the index.
_________________ Sanne http://in.relation.to/
|