Page MenuHomePhabricator

Don't propose to create a page under a title with prefix:, intitle:, incategory: or other search operators
Closed, ResolvedPublic

Description

When the search uses parameters prefix:, intitle: or +incategory:, it should not propose to create the page. See link, new users have been confused by this when searching archives and created pages like <something> prefix:Talk:Main Page . It seems unlikely that pages containing any of those strings need to be created.


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29#Prefix_searches_confuse_new_users
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=22678

Details

Reference
bz21102

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:54 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz21102.
bzimport added a subscriber: Unknown Object (MLST).

These are legitimate page title names, no need for the software to block them.

If a local wiki doesn't want them, an AbuseFilter or entry to the page title blacklist are more appropriate. Marking WONTFIX.

Where they're syntactical elements of a search query they really should be excluded from the search suggestion.

  • Bug 21137 has been marked as a duplicate of this bug. ***

rainman wrote:

*** Bug 21467 has been marked as a duplicate of this bug. ***

This also happens with the ~ and - prefixes, and the * suffix.

MediaWiki:Searchmenu-new is also a bit ugly: '''Create the page "[[:$1]]" on this wiki!''' I understand the bold, but the exclamation mark? While at it, if this bug is fixed the message can be made a bit more encouraging, like «'''You can create the page "[[:$1]]" on this wiki.'''» (such a wording would currently make the effects of this bug worse); the bug 27311 could make the link more helpful and always valid whatever the permissions/processes on the wiki.

7rt1j wrote:

As mentioned on bug 29989, this is also the case with double quotes used in search phrases.

  • Bug 29989 has been marked as a duplicate of this bug. ***

We actually did this with Cirrus. If other backends support fancy syntax and want to do the same, they can too by returning true in SearchResultSet::searchContainedSyntax() implementations.