Page MenuHomePhabricator

Can't create new article from search when including a quote in the search string
Open, LowPublic

Description

Expected behavior: I search for a string, and get shown message "searchmenu-new", offering me to create an article by that name.
Actual behavior: the message doesn't appear if the search string includes a quote mark.

Example: I try to create a new article named Don "King" Kong, and I do so by searching for that string:
https://en.wikipedia.org/w/index.php?search=Don+"King"+Kong
...I do not get the option to create an article of that name.
(Please note that a single quote anywhere in the string is enough to trigger this behavior)

This behavior seems to be triggered by flag $searchContainedSyntax, which I got lost tracking down in the source code. As far as I can tell, this is due to CirrusSearch; running a mediawiki-vagrant machine with vanilla search everything works as expected. I assume this is because vanilla search has no special search operators.

I'll totally understand if this is a WONTFIX...

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

The message that suggests creating an article that doesn't exist is not shown if your search contained special syntax. This is to avoid nonsensical suggestions like You may create the page "insource:foo". Quotes are actually special syntax; if you put something in quotes, it will only show exact matches.

In general, I suspect that that message is useless for a variety of reasons, and could just be completely removed to declutter the page. I have no data to back that up.

Deskana moved this task from needs triage to search-icebox on the Discovery-Search board.

Yeah, I saw what it was for, but I guess in a perfect world it wouldn't
trigger for a single quote (which isn't special syntax) or for quotes
around a single word (which, again, isn't special syntax AFAIK).

MPhamWMF subscribed.

Closing out low/est priority tasks over 6 months old with no activity within last 6 months in order to clean out the backlog of tickets we will not be addressing in the near term. Please feel free to reopen if you think a ticket is important, but bare in mind that given current priorities and resourcing, it is unlikely for the Search team to pick up these tasks for the indefinite future. We hope that the requested changes have either been addressed by or made irrelevant by work the team has done or is doing -- e.g. upgrading Elasticsearch to a newer version will solve various ES-related problems -- or will be subsumed by future work in a more generalized way.

RhinosF1 removed a project: Discovery-Search.
RhinosF1 subscribed.

Re-opening tasks and removing from team workboard per IRC feedback given yesterday and discussion with MPham.