Walter Lee Davis
2012-Sep-04 16:07 UTC
Thinking Sphinx and Ransack in the same application?
I have Ransack set up to do simple attribute-based search in my application. Now, I''m trying to add TS to the app to enable full-text searching. Trouble is, both of these define a Model#search method. Has anyone here ever tried this combination? Is there a way to rename the search method on either of these? Thanks in advance, Walter -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Walter Lee Davis
2012-Sep-04 16:26 UTC
Re: Thinking Sphinx and Ransack in the same application?
On Sep 4, 2012, at 12:07 PM, Walter Lee Davis wrote:> I have Ransack set up to do simple attribute-based search in my application. Now, I''m trying to add TS to the app to enable full-text searching. Trouble is, both of these define a Model#search method. Has anyone here ever tried this combination? Is there a way to rename the search method on either of these? > > Thanks in advance,Digging at this a little more in console, it appears that TS completely clobbers Ransack''s search, so I know that much so far. Walter> > Walter > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Use ''ransack'' method for a ransack search [example<http://stackoverflow.com/a/10421755/820520>]. This should solve all your problems. Regards, Anton вторник, 4 сентября 2012 г., 20:07:36 UTC+4 пользователь Walter Lee Davis написал:> > I have Ransack set up to do simple attribute-based search in my > application. Now, I''m trying to add TS to the app to enable full-text > searching. Trouble is, both of these define a Model#search method. Has > anyone here ever tried this combination? Is there a way to rename the > search method on either of these? > > Thanks in advance, > > Walter-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/iMOBi08c0AkJ. For more options, visit https://groups.google.com/groups/opt_out.
Walter Lee Davis
2012-Sep-05 17:55 UTC
Re: Thinking Sphinx and Ransack in the same application?
On Sep 5, 2012, at 7:05 AM, antonk wrote:> Use ''ransack'' method for a ransack search [example]. This should solve all your problems.Nice find -- this is exactly what I needed! Walter> > Regards, > Anton > > вторник, 4 сентября 2012 г., 20:07:36 UTC+4 пользователь Walter Lee Davis написал: > I have Ransack set up to do simple attribute-based search in my application. Now, I''m trying to add TS to the app to enable full-text searching. Trouble is, both of these define a Model#search method. Has anyone here ever tried this combination? Is there a way to rename the search method on either of these? > > Thanks in advance, > > Walter > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/iMOBi08c0AkJ. > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.