Hi Jeremy You can use search_for_ids instead of search - this just returns the object ids instead of ActiveRecord objects. Under the hood, the only difference is it passes through an additional option: :ids_only => true (just in case you programmatically want to optionally add the option instead of call different methods).
Cheers -- Pat On 07/12/2010, at 2:22 AM, Finding_Zion wrote: > Pat, > > I'm doing a lot of different queries to calculate various matches. Is > there a way to return just the sphinx search result without querying > the database? > > I added ":select => 'id'" to my search, but logs show it queries the > database with the list of id's. I'd like to get those id's without > interacting with the database. > > Jeremy > > -- > 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. > -- 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.
