ThinkingSphinx: When using search_for_ids how to get the associated sphinx weights?

40 views Asked by At

Is it possible when using search_for_ids to also get the associated sphinx weights?

1

There are 1 answers

0
joshweir On BEST ANSWER

Answered by Pat on github:

It is indeed possible, albeit a little less elegant than usual:

ThinkingSphinx.search_for_ids('ruby', :select => '*, weight()').raw

This will return an array of hashes with Sphinx's raw results.