Last modified: 2007-07-15 18:53:08 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 T3942, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1942 - Search engine should treat namespace prefixes properly
Search engine should treat namespace prefixes properly
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
PC Linux
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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
Hurray!

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


Navigation
Links