On 10/14/06, Andreas Schwarz <[EMAIL PROTECTED]> wrote: > Ferret 0.10.11 & AAF: the time seems to be stored in a format that can't > be sorted, the order doesn't make any sense. Workaround: use to_i on the > Time object before putting it into the index.
This is fine for sorting but it won't work when you want to do range queries. If you want to run range queries against the field you will need to pad the integer to a fixed width. I usually add dates in YYYYMMDD format so that they are also human readable. Another thing to take into account is the precision you want. The higher the precision you store the longer indexing and searching will take. For small indexes however the difference will be negligible. Cheers, Dave Cheers, Dave _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

