Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#53745 - {wiki} Install and enable TitleKey extension to allow case-insensitive Opensearch queries

Attached to Project: Arch Linux
Opened by David Thurstenson (thurstylark) - Friday, 21 April 2017, 16:17 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 10 July 2017, 17:47 GMT
Task Type Feature Request
Category Web Sites
Status Assigned
Assigned To Pierre Schmitz (Pierre)
Florian Pritz (bluewind)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

This is useful for anything that uses the Opensearch API[2] for searching page title names[3], since only the first character of the query is case-insensitive when using this search method. The Opensearch API wiki page suggests installing and enabling the TitleKey extension[4] to enable case-insensitive search.

For example, the supybot-ALwiki plugin[1] makes use of this API in order to implement the !aw $searchterm functionality for phrik[5].
Ideally, this will make the ALwiki plugin much more useful in the IRC channels where phrik is joined.


Example cases:

Q: "ESP"
R: "ESP - https://wiki.archlinux.org/index.php/ESP";

Q: "esp"
R: "No results found."

Q: "Esp"
R: "No results found."

Q: "eSP"
R: "ESP - https://wiki.archlinux.org/index.php/ESP";

Q: "EFI System Partition"
R: "EFI System Partition - https://wiki.archlinux.org/index.php/EFI_System_Partition";

Q: "EFI System partition"
R: "No results found."

Q: "EFI system Partition"
R: "No results found."


[1]: https://github.com/meskarune/supybot-ALwiki
[2]: https://www.mediawiki.org/wiki/API:Opensearch
[3]: https://github.com/meskarune/supybot-ALwiki/blob/master/ALwiki/plugin.py#L55
[4]: https://www.mediawiki.org/wiki/Extension:TitleKey
[5]: https://wiki.archlinux.org/index.php/Phrik
This task depends upon

Comment by Eli Schwartz (eschwartz) - Monday, 10 July 2017, 17:47 GMT
alad basically said okay to this:

1:33:15 PM - alad: eschwartz, add extension bloat just because phrik sucks, idk
1:34:25 PM - alad: wait, mediawiki's own api suggests to use that extension
1:39:54 PM - alad: I find it silly that to unbreak a broken api you now need to maintain and install an extra extension
1:39:59 PM - alad: but it's up to florian/pierre anyway

I have to agree mediawiki is pretty wrong here, but on the other hand this is pretty valuable functionality...
Comment by Eli Schwartz (eschwartz) - Wednesday, 07 February 2018, 22:37 GMT

Loading...