Last modified: 2010-05-15 15:33:44 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 1099 - multiple searches should be 'and' instead of 'or'
multiple searches should be 'and' instead of 'or'
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2004-12-14 14:22 UTC by Andre Engels
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Description Andre Engels 2004-12-14 14:22:50 UTC
When more than one word is filled in in a search, the search returns all pages
containing _any_ of those words. It sould be much more useful to get the pages
containing _all_ of those words.

(In particular on the Chinese Wikipedia, where each character is considered a
single word, I am getting the feeling one might as well switch off searching
without losing much usability...)
Comment 1 Darkoneko 2005-09-29 00:37:26 UTC
well, it would be even better if we could select "AND" or "OR" mode :)
Comment 2 Brion Vibber 2006-04-25 05:41:34 UTC
Didn't we fix this many versions ago?
Comment 3 Ben Gertzfield 2006-04-25 15:21:09 UTC
Currently with SearchMySQL4.php, all searches *are* "AND" by default; if no other operator is present, + is prepended to each word in the search.

However, there seems to be no way to select "OR" mode with the current behavior; you can't remove the + from any word, because SearchEngine.php strips all non-
alphanumeric characters from the search.

The patch attached to bug 5711 allows admins to choose "AND" or "OR" mode for the default mode of MySQL 4.x-based search.

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