Last modified: 2011-01-28 19:55:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29017, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27017 - Return the relevance in search query api
Return the relevance in search query api
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.18.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-28 19:48 UTC by Krinkle
Modified: 2011-01-28 19:55 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2011-01-28 19:48:18 UTC
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.
Comment 1 Brion Vibber 2011-01-28 19:54:11 UTC
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.
Comment 2 Brion Vibber 2011-01-28 19:55:43 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links