Am 15.10.2011 14:45, schrieb John Vandenberg:
On Sat, Oct 15, 2011 at 4:33 AM, Daniel Barrett
<danb(a)vistaprint.com> wrote:
Is it
possible for the special:search logic to take us to [[category:foo]] if [[foo]] doesnt
exist and [[category:foo]] does?
This should be an easy wiki extension to write,
using the hook SpecialSearchGo(&$title, &$term). Just check for the existence of
the article and the category, and modify the title correspondingly.
It looks like
there is some code to check for an appropriate page,
with a bit of fuzzy logic.
Please check also if you can reuse
http://www.mediawiki.org/wiki/Extension:TitleKey
or parts of its code. I like that extension.
"TitleKey extension is a case-insensitive title prefix search plugin by
Brion Vibber. It uses a separate table for the keys, so if it works
cleanly it can be deployed without an expensive rebuild of core tables,
and dumped when Wikimedia gets a nicer backend through
Extension:LuceneSearch (pre 1.13) or Extension:MWSearch (1.13+)...
This extension is being used on one or more of Wikimedia's wikis. This
means that the extension is stable and works well enough to be used by
such high traffic websites. A full list of the extensions installed on a
particular wiki can be seen on the wiki's Special:Version page."