[Mediawiki-l] "Go" doesn't search for article title first

Brion Vibber brion at pobox.com
Mon Oct 18 16:44:02 UTC 2010


"Go" should work just fine for pages in other namespaces, as long as you're
writing the full title - eg "Talk:Foo" not just "Foo".

If you want it to check the given text portion against *all* namespaces,
that may require a little work.

I don't recall if we fixed it up to check plain titles against everything in
$wgDefaultSearchNamespaces already, but it's probably not hard to rig up an
extension to do that; I can't peek at the code just yet as I'm on a train.
:)

-- brion
On Oct 18, 2010 8:23 AM, "Ross Xu" <rossxunix at yahoo.ca> wrote:
> Hi there,
> As we know, the difference between "Go" and "Search" buttons beside the
search box is that "Go" first looks for article's title and first lists
search results found in titles, and immediately goes to the indicated
article if one is found. If "Go" fails to find an article, it then
automatically executes "Search" which is a full-text search for the given
words.
>
> However, it only works well for default namespaces. If the given keywords
string is in articles under a customized namespace, the "Go" doesn't look
for (or list) article titles first, which means there is no difference
between "Go" and "Search".
>
> Is there any way to do to make the "Go" to work for customized namespaces?
>
> BTW, in case there is something to do with the search engine, I am using
Lucene-search/MWSearch.
> Thanks in advance,
> Ross Xu
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


More information about the MediaWiki-l mailing list