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 new DateTools class
Date Sun, 05 Sep 2004 22:23:07 GMT
Hi,

some random notes about the newly added DateTools class:

-it's named DateTools because it contains static methods only, so I think 
that name is okay

-the public round() method can be used to limit date resolution without 
using the new "readable" format (which is slightly longer than that of 
DateField)

-more methods like "dateToIntegerString" might later be added for date 
fields that can be sorted more efficiently -- but this will have limits on 
the date range (Integer with second resolution can only be used to store 
dates from 1970 to 2030 or something like that)

-the old DateField class is not deprecated because people have indexes with 
those fields, and there's no reason to force them to use another format if 
DateField works okay

Let me know if you think there might be problems with the new class.

One problem(?) currently is that DateFilter accepts the "old" DateField 
format only.

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