Last modified: 2014-10-10 21:34:26 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 T72958, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70958 - OpenSearch: If input exists as a title it should be included in the results
OpenSearch: If input exists as a title it should be included in the results
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.23.0
All All
: High enhancement (vote)
: 1.25.0 release
Assigned To: Krinkle
:
Depends on:
Blocks: 51013
  Show dependency treegraph
 
Reported: 2014-09-17 20:27 UTC by James Forrester
Modified: 2014-10-10 21:34 UTC (History)
6 users (show)

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


Attachments

Description James Forrester 2014-09-17 20:27:55 UTC
Currently it is possible for OpenSearch to fail to return the input in its results even if the input matches the title of a page which exists, especially for short page titles. Instead, OpenSearch should explicitly check if this is the case and return that, regardless of the other results it may contain.
Comment 1 Krinkle 2014-09-18 00:43:48 UTC
The default search backend implements proper prefix search and does this naturally. But extensions providing search backends like Lucene and CirrusSearch actually fail to implement proper prefix searching and instead use their search engine ranking for prefix search as well. Thus often the exact match is not on top or is not even in the first 10 results at all.

E.g. on en.wikipedia.org:


> Example
1. "Example (musician)"
2. "Example"
3. "Example.com"

> John ive
1. "John Ives"
2. "John Ivey"
3. "John Ive"

> Foo
1. "Football (soccer)"
2. "Football League Cup"
3. "Foot (length)"
"Foo" exists but is not in the results.
Comment 2 Gerrit Notification Bot 2014-09-18 00:55:35 UTC
Change 161148 had a related patch set uploaded by Krinkle:
PrefifSearch: Enforce including the exact match as first result

https://gerrit.wikimedia.org/r/161148
Comment 3 Gerrit Notification Bot 2014-10-10 21:34:26 UTC
Change 161148 merged by jenkins-bot:
PrefixSearch: Enforce including the exact match as first result

https://gerrit.wikimedia.org/r/161148

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


Navigation
Links