Page MenuHomePhabricator

Removing comment page names from search autocomplete
Closed, ResolvedPublic

Description

Is there some way to get Comment page names from showing up in MW search auto-complete short of disabling search auto-complete since the titles are long and seemingly random string characters? (It does not appear to respect $wgNamespacesToBeSearchedDefault settings). Our users tend to find these confusing and trigger them randomly while entering other page names.

I understand you mentioned that CommentStreams forces $wgNamespacesToBeSearchedDefault to be enabled for the comment namespace so that comment text is searchable. So that setting cannot be disabled. (If a search hit is found in a comment, the result is linked to the page that the comment is associated with, not the comment page itself.)

It would be great to:

    1. Retail the ability to search comments but not have comment page names show in autocomplete.
  1. Have a config parameter to prevent comments from coming up in search results (for wikis who use comments for purposes where these showing in search results might not be desirable).

Thanks!

Event Timeline

Change 667421 had a related patch set uploaded (by Cicalese; owner: Cicalese):
[mediawiki/extensions/CommentStreams@master] Add config flag to disable search

https://gerrit.wikimedia.org/r/667421

Change 667404 had a related patch set uploaded (by Cicalese; owner: Cicalese):
[mediawiki/extensions/CommentStreams@REL1_35] Add config flag to disable search

https://gerrit.wikimedia.org/r/667404

cicalese triaged this task as Medium priority.Mar 1 2021, 3:56 PM
cicalese subscribed.

The patch allows search on comment pages to be disabled. It does not address autocomplete of comment page names in the search box when search is enabled. I will leave the task open for now to investigate solutions for that.

Change 667404 merged by jenkins-bot:
[mediawiki/extensions/CommentStreams@REL1_35] Add config flag to disable search

https://gerrit.wikimedia.org/r/667404

Change 667421 merged by jenkins-bot:
[mediawiki/extensions/CommentStreams@master] Add config flag to disable search

https://gerrit.wikimedia.org/r/667421

cicalese claimed this task.
cicalese moved this task from Backlog to Closed on the MediaWiki-extensions-CommentStreams board.

I believe this was fixed by https://gerrit.wikimedia.org/r/667421. Please feel free to reopen if there is something left to be done.