Last modified: 2014-10-10 21:34:26 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.
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.
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
Change 161148 merged by jenkins-bot: PrefixSearch: Enforce including the exact match as first result https://gerrit.wikimedia.org/r/161148