Sohan
Sohan

Reputation: 3807

Thinking-sphinx and relevance or similarity score

Does someone know if there is a way to get the raw relevance or similarity score between a query and a result when using sphinx in general or thinking-sphinx as a wrapper? Any help is greatly appreciated.

Upvotes: 0

Views: 716

Answers (1)

Bashar Abdullah
Bashar Abdullah

Reputation: 1545

@results.each_with_weighting do |result, weight| # ... end

from the comments on http://railscasts.com/episodes/120-thinking-sphinx

Upvotes: 1

Related Questions