lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: sorting by date (XML)
Date Tue, 27 Apr 2004 19:30:29 GMT
On Apr 27, 2004, at 2:09 PM, Robert Koberg wrote:
> Otis Gospodnetic wrote:
>> Because having small time units like milliseconds will result in Range
>> query expanding to a large number of BooleanQueries, if you have a lot
>> of documents with unique time stamps.  Rounding the timestamp to
>> minutes, hours, or days, can drastically reduce the number of unique
>> time stamps, hence resulting in less BooleanQueries.
> Cool, thanks. So DateField.dateToString is the best, most efficient 
> way, correct?

It all depends.  But if all you care about is year, month, day, it is 
_not_ the most efficient.  DateField converts down to milliseconds, and 
is what Otis was referring to.


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

View raw message