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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -