So i have acts as ferret working nicely except for one problem. I can''t for the life of me filter results on a parent model! For example we have a tree that goes Account->User->Article Article.find_by_contents("hello") works great but I try something like Article.find_by_contents("hello", {}, {:include=>:users, :conditions=>["users.account_id = ?"]) gives a bunch of errors, its clearly not including the users -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I know that it''s not your question, but alot of people seem to have problems with Ferret in production. Might I suggest to switch to Shpinx using ThinkingSphinx plugin before it''s too late? :) As for your question, I don''t know enough about Ferret to help you, I''m sorry. On Oct 8, 8:01 pm, aa aa <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> So i have acts as ferret working nicely except for one problem. I can''t > for the life of me filter results on a parent model! > For example we have a tree that goes > Account->User->Article > > Article.find_by_contents("hello") works great but I try something like > Article.find_by_contents("hello", {}, {:include=>:users, > :conditions=>["users.account_id = ?"]) > > gives a bunch of errors, its clearly not including the users > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
DavidPaquet wrote:> Hi, > > I know that it''s not your question, but alot of people seem to have > problems with Ferret in production. Might I suggest to switch to > Sphinx using ThinkingSphinx plugin before it''s too late? :)Bloody brilliant David! The ThinkingSphinx quickstart had the EXACT example i needed. After re-reading sphinx install instructions (forgot the --with-pgsq option), setup was a breeze and it works perfectly! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---