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: Exact date search doesn't work with 1.9.1?
Date Sun, 09 Apr 2006 14:15:55 GMT
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: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
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