This is a stab in the dark, but is it possible there's a value that you're typing in as an integer in the console but that is actually being passed as a string in the controller? Maybe something from the params hash? That's definitely tripped me up before.
Declan On Feb 20, 2013 7:19 PM, "Stanislav Pisockij" <[email protected]> wrote: > Hi guys, > > I'm having a same issue. When I try to execute a search in rails console > it brings results, when I'm trying to do same in controller it does not. > But if in controller I change the condition I get results. So it seems like > it's working but partially. > eg. > Search('abc').filter(...) returns 0 results in passanger and 10 in console > Search('abc') returns 500 results in passanger and 500 in > console > > I'm running: > > Apache/2.2.22 (Ubuntu) > Phusion Passenger version 3.0.17 > Sphinx 2.0.4-release (r3135) > > thinking-sphinx (2.0.13) > riddle (1.5.3) > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
