Hi Tom
:include, :joins and :select all get passed through to
ActiveRecord. :conditions and :order are used by Thinking Sphinx for
search conditions and sorting.
If you provide a bit more context for what you're trying to do, I
might be able to provide some more specific advice, but hopefully the
above information helps.
Cheers
--
Pat
On 01/11/2009, at 8:32 AM, Tom Milewski wrote:
>
> How can I go about passing values through Thinking Sphinx to the DB?
>
> Similarly to snippet from Acts_As_Ferret:
>
> @projects = Project.search(params[:q], {:select => 'id, name,
> permalink', :conditions => '[conditions]', :order =>
> 'projects.name', :include => [:state]})
>
> This would query Sphinx and pass the IDs and additional parameters to
> MySQL.
>
> Thanks in advance for the help.
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---