Page MenuHomePhabricator

multiple searches should be 'and' instead of 'or'
Closed, ResolvedPublic


Author: andreengels

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...)

Version: 1.4.x
Severity: major


TitleReferenceAuthorSource BranchDest Branch
Add support for nested go.mod filesrepos/security/gitlab-ci-security-templates!25sbassettT309997-add-nested-gomod-supportmain
Integrate go-mod-outdated ci template for Golang Dependency Managementrepos/security/gitlab-ci-security-templates!24mmartoranago-mod-outdatedmain
Customize query in GitLab

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:06 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz1099.
bzimport added a subscriber: Unknown Object (MLST).

koneko wrote:

well, it would be even better if we could select "AND" or "OR" mode :)

Didn't we fix this many versions ago?

foxden wrote:

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.

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:21 AM