Last modified: 2013-12-11 15:25:04 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 T60309, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58309 - opensearch: Querying for "Big" or "Big!" should include "Big" or "Big!" as first suggestion
opensearch: Querying for "Big" or "Big!" should include "Big" or "Big!" as fi...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
cirrus-fixed
:
Depends on:
Blocks: 27411
  Show dependency treegraph
 
Reported: 2013-12-11 04:33 UTC by Krinkle
Modified: 2013-12-11 15:25 UTC (History)
5 users (show)

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


Attachments

Description Krinkle 2013-12-11 04:33:04 UTC
The following pages all exist on en.wikipedia.org:

* [[Bird]]
* [[Big]]
* [[Big!]]
* [[Big Ten Conference]]

When querying action=opensearch for:

* "Bir": 0 => "Bird"
   https://en.wikipedia.org/w/api.php?format=json&action=opensearch&namespace=0&search=Bir
   [input,["Bird","Birmingham",..]]

* "Bird": 0 => "Bird"
   https://en.wikipedia.org/w/api.php?format=json&action=opensearch&namespace=0&search=Bird
   [input,["Bird","BirdLife International",..]]

* "Big": 
   https://en.wikipedia.org/w/api.php?format=json&action=opensearch&namespace=0&search=Big
   ["Big",["Big Ten Conference","Big band",...]]

* "Big": 
   https://en.wikipedia.org/w/api.php?format=json&action=opensearch&namespace=0&search=Big!
   ["Big!",["Big Ten Conference","Big band",...]]

In the last two, "Big" and "Big!" are nowhere in the response.

Filing against Wikimedia for now, because this seems related to one of our search backends, not plain MediaWiki core or plain MediaWiki core with Extension:TitleKey installed.

This is currently causing issues in VisualEditor when making a link to a page called "Big", or "Big!" as it will think the page doesn't exist and suggest to make a red link, as, thus far, we've always assumed that if a page by the exact title exists, it should be the first suggestion.

It normalising casing and/or special characters is fine, but shouldn't make it not give an exact match as first result.
Comment 1 Krinkle 2013-12-11 04:34:51 UTC
VisualEditor screenshots:

- Big! http://cl.ly/image/3U3V1h1B3i0r
- Big  http://cl.ly/image/193c290i1X0z
Comment 2 Bartosz Dziewoński 2013-12-11 14:57:56 UTC
I'm pretty sure 'OpenSearchXml' is not the right component. Also, cc-ing search people.
Comment 3 Nik Everett 2013-12-11 15:05:25 UTC
Some good news, at least.  Cirrus does what you'd expect.  If you have a page named "Big!" and type "Big!" into the search box it'll return Big! as the suggestion.

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


Navigation
Links