ThinkingSphinx:使用search_for_ids时如何获取关联的sphinx权重?

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

是否可以在使用 search_for_ids 时也获得相关的狮身人面像权重?

回答者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.