The values that are used are models instead. While debugging. I tracked each line and all data is identical except for the final result.
Basically what I'm doing is I'm getting some results from ThinkingSphinx search, then use that in next ThinkingSphinx search and this is where the data differs comparing to console. By the way. I've seen this problem occurs not only in passenger, but in WEBrick, rake and others. I've tried disabling classes caching: config.cache_classes = false config.consider_all_requests_local = false config.action_controller.perform_caching = false config.reload_classes_only_on_change = false I've also read other threads and no, I'm not using subclasses and I tried :populate => true - does not help :retry_stale => true - does not help I'm trying to search within millions of rows of data, could that be a problem? Can it be max_matches thing? Any other suggestions? On Thursday, February 21, 2013 at 3:48 PM, Declan Frye wrote: > 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] > (mailto:[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] > > (mailto:thinking-sphinx%[email protected]). > > To post to this group, send email to [email protected] > > (mailto:[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] > (mailto:[email protected]). > To post to this group, send email to [email protected] > (mailto:[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.
