lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Koberg <>
Subject Re: the future of DateField
Date Tue, 17 Aug 2004 18:46:35 GMT
Daniel Naber wrote:

>On Tuesday 17 August 2004 19:50, Robert Koberg wrote:
>>Why can't Field.Text
>>be used? In other words, why cant the date string be tokenized?
>What would you gain? If you tokenize "2004-08-12" into 2004, 08, 12 you can 
>only find that date with a phrase query, which is slower than a term 
>query. Also, you can search for "12" but you get both documents from 
>December and those from the 12th of any month, which doesn't make sense.

It is not a big deal, but forces me to check for the 2 different date 
attributes in the XML I am indexing as opposed to using Field.Text for 
all and not check. I did not realize it uses a dash as the separator. I 
thought dashes were just stripped.


> Daniel

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message