Page MenuHomePhabricator

Return the relevance in search query api
Closed, DeclinedPublic

Description

For third party tools and applications it'd be very helpful to have some way of indicating how good a result is compared to other search results within the same query, or perhaps from a different query or even search results from a different wiki.


Version: 1.18.x
Severity: enhancement

Details

Reference
bz27017

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:17 PM
bzimport set Reference to bz27017.

Search API query result rows include a 'score' value if it's reported by the search engine. Neither the MySQL nor Lucene (MWSearch) engines do.

(Lucene used to, but we took it out since the value was confusing.)

SearchResult::getScore() returns the value.

Note also that relevancy scores are likely not terribly useful for comparing across different searches as they're going to be *very* specific to the query, search set and algorithms.