On Mar 31, 2007, at 8:07 PM, John Bachir wrote:
> I investigated and discovered that the correct data was
> storing this in my ferret index: "1999-10-18 00:00:00" and the
> incorrect data was storing this: "Mon Oct 18 00:00:00 EDT
> 1999"  (oops...)
>
> So I of course had to fix the incorrect data, and I figured while i
> was at it, I would normalize and minimize everything to this format:
> "19991018000000".
>
> Now it seems that sorting on this column does not work at all.

I just normalized everything to the "1999-10-18 00:00:00" format, and  
it is working again.

My guess is that ferret is treating the data differently if it is  
only numeric characters? I've been using ferret for quite some time  
and have never come accros a type issue like this.

Also, on that same model, I have another ferret field, configured the  
very same way, that is always a number; sorting works perfectly.  
However, those numbers are much smaller (number of messages in the  
discussion thread).

So maybe ferret has a problem with big numbers?

Anyway, I'm glad it's working again, but would be very interested to  
know what the problem was.

Cheers,
John
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to