Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ThinkingSphinx によって返された配列を使用して結果を含む関連値を取得する方法はありますか? パーセンテージ、ポイントなど、私が扱えるものは何ですか?
はい - 結果セットを反復処理して、それぞれの重みを取得できます。
results = ThinkingSphinx::Search.search(params[:q]) results.each_with_weighting do |result, weight| puts "#{result.name} #{weight}" end