Hi Group,

I am having a problem when searching with TS. The following query
returns results:

Profile.search :with => { :birthdate => 20.years.ago..Time.now }

But this returns no results!

Profile.search :with => { :birthdate => 40.years.ago..Time.now }

I notice that when converting the timestamps to ints the second query
has a negative value for the range start. I also noticed that a 0 on
the range start works but as soon as there is a negative epoch (ie;
before 1970-01-01) TS fails to return any results.

Profile.search :with => { :birthdate => 0...1248228518 } => Lots of
records

Profile.search :with => { :birthdate => -1...1248228518 } => NOTHING!

It looks like Riddle bungles the query string somewhere but not sure
how to fix it.


Anyone have any ideas?

Daniel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to