Last modified: 2007-07-15 18:53:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1942 - Search engine should treat namespace prefixes properly
Search engine should treat namespace prefixes properly
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
PC Linux
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-04-22 02:34 UTC by Christopher Beland
Modified: 2007-07-15 18:53 UTC (History)
1 user (show)

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


Description Christopher Beland 2005-04-22 02:34:33 UTC
1.) Strings that are clearly namespace prefixes should be interpreted as
namespace prefixes.

For example, if I type "Category:Dead people" into the navbar on the left-hand
side of any Wikipedia page and hit "Search", I do not find "Category:Dead
people" in the results.  Instead of searching the Category namespace for "Dead"
and "people", it has searched the main namespace and, inexplicably, the
Mediawiki talk: namespace for "Category:Dead" and "people".

2.) Namespace flags, when set, should be honored for the entire page.

There are two text entry bars on the search page, one near the top and one near
the button, each with their own submit buttons.  Only the bottom bar seems to
respect the namespace flags.  For example, if I select "Category" and deselect
(Main) and Mediawiki talk:, then type "Dead" in the top search bar and hit the
"Search" button next to it, the search engine looks in the main namespace for
the query "Dead", not the category namespace.  However, if I do the same thing
but use the bottom bar instead, I successfully find "Category:Dead people" among
the results.
Comment 1 Brion Vibber 2005-04-22 04:18:20 UTC
Could you split this into two bug reports, please?
Comment 2 Christopher Beland 2005-04-23 02:51:02 UTC
Sure.  This bug will be about (1); (2) has been re-reported as 1953.
Comment 3 Robert Stojnic 2007-07-13 19:06:18 UTC
Fixed in Lucene Search 2. Namespace prefixes are treated as filters. So, query:
category:dead people, will search the category namespace for "dead people".

Comment 4 Christopher Beland 2007-07-15 18:53:08 UTC

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