This could be a case of your QueryParser analyzer eating a number. Range queries and prefix/wildcard query terms are not analyzed.

Besides the great suggestion to use Luke, also try a TermQuery if you happen to be using QueryParser to create your Query currently.

        Erik


On Apr 7, 2006, at 10:45 PM, Perez wrote:

Hi all,

I have a document with a date in it and I put it into a field like so:
DateTools.dateToString(theDate, Resolution.DAY),
Field.Index.UN_TOKENIZED.

What I find is that a range query works:
[20060131 TO 20060601] and wildcard works e.g.
2006*
but exact matches do not work e.g.
20060130

Any ideas on how I am misusing the API?

This is 1.9.1.

tia,
-arturo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to