ruby on rails - How do I retrieve relevance value for ThinkingSphinx search results? -


is there way retrieve relevance values results array returned thinkingsphinx? percentages, points or whatever, can work with?

yep - can iterate on result set, , retrieve weight each:

results = thinkingsphinx::search.search(params[:q]) results.each_with_weighting |result, weight|   puts "#{result.name} #{weight}" end 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -