Last modified: 2014-02-11 13:44:32 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 T62976, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60976 - Prefix Search: Would be nice if php could highlight the result rather than js
Prefix Search: Would be nice if php could highlight the result rather than js
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-06 18:29 UTC by Nik Everett
Modified: 2014-02-11 13:44 UTC (History)
3 users (show)

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


Attachments

Description Nik Everett 2014-02-06 18:29:57 UTC
Sometimes we see weird results in the prefix search because Cirrus uses different matching rules then the jquery.suggestions library.  For example, in English, Cirrus is flattens high ascii so searching for "resume" will return "résumé".  Cirrus is quite capable of highlighting the result properly, but it has no way to tell the front end what the result should look like.

I don't believe it would be practical to replicate Cirrus's logic on the front end because it can change and it is different for different wikis.
Comment 1 Bartosz Dziewoński 2014-02-06 19:05:50 UTC
I don't care how you do this, but please do. I hate the core search suggestions module.

Core could totally also output match indices from the opensearch API (that shouldn't be incompatible with anything, but I haven't checked), naively by default (we could just implement the same logic as the JS module has now), with a hook override for better search extensions. Then we could apply bolding in the UI trivially based on these indices.
Comment 2 Nik Everett 2014-02-06 19:12:38 UTC
I'm glad it has bothered someone else too.

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


Navigation
Links