: If none of your dates have times, they're all just full days, I'm not sure you
: really need the date type at all.
: 
: Convert the date to number-of-days since epoch integer.  (Most languages will
: have a way to do this, but I don't know about pure XSLT).  Store _that_ in a
: 1.4 'int' field.  On top of that, make it a "tint" (precision non-zero) for
: faster range queries.

There's really no advantage to doing this over using the TrieDateField 
(available in Solr 1.4).  It's esentially how it's implemented under the 
covers (you can pick the precision just like TrieInt) except that:

1) it uses a long instead of an int
2) it supports DateMath expressions
3) it supports Date Faceting

-Hoss

--
http://lucenerevolution.org/  ...  October 7-8, Boston
http://bit.ly/stump-hoss      ...  Stump The Chump!

Reply via email to