Last modified: 2011-09-12 15:56:04 UTC
Maybe it would be possible to display information about relevance ranking[1] or search confidence within the search result[2], [3]. The display might indicate a confidence about the search term and its position within the search list. [1] http://sphinxsearch.com/blog/2010/08/17/how-sphinx-relevance-ranking-works/ or other customized rankings [2] See includes/specials/SpecialSearch.php ... $result->getScore() [3] extensions/LuceneSearch.php ... $score = wfMsg('searchscore', $percent);
MW currently only allows a simple score (percentage) to be displayed. It does not seem possible to convert the weight sphinx assigns to a percentage that would have a meaning to a regular user. To understand this "percentage", you would need to have a good understanding of how sphinx calculates the weight, and even that is different for different sorting algorithms. Things get even more complicated when custom weights are used, as we do already - we give a much higher weight to the title field. If you have some specific ideas how to actually do this, feel free to reopen the bug with your suggestions.