lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <daniel.na...@t-online.de>
Subject Re: the future of DateField
Date Tue, 17 Aug 2004 18:37:28 GMT
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.

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message