Page MenuHomePhabricator

Substring in title not found in Phabricator Global Search
Closed, ResolvedPublic

Description

The other day I was looking for a task which I knew had the substring EchoPerUserBlacklist in it. Searching for that string (query) yields one result, without the task I was looking for.

Searching for wgEchoPerUserBlacklist (query), however, does locate what I was looking for.

The task (T251331) in question has Remove $wgEchoAgentBlacklist and $wgEchoPerUserBlacklist as the title and $wgEchoPerUserBlacklist is in the description. I would expect that searching for EchoPerUserBlacklist could find that task.

Event Timeline

I looked at this a bit and Phabricator docs told me that substring search should work with a ~ in front of the string. But when i tried that i could not confirm it to work. I still only got the exact string matches. So i suggested to make a ticket about it.

https://secure.phabricator.com/book/phabricator/article/search/

Mentioning a task in a task description probably triggers reindexing, so I guess the test case has been destroyed.

Works for me: https://phabricator.wikimedia.org/maniphest/query/k4t.t8ULgItb/#R

Does not work when putting the same into the global search field ^. Even though both your and my example show "Advanced Search" above the form.

Same when changing scope to "Current Application"

Aklapper renamed this task from Adjustments for substring matching to Substring in title not found in Global Search.May 8 2020, 12:40 PM
Krinkle renamed this task from Substring in title not found in Global Search to Substring in title not found in Phabricator Global Search.May 9 2020, 3:39 AM
hashar claimed this task.
hashar subscribed.

Search for EchoPerUserBlacklist

From https://secure.phabricator.com/book/phabricator/article/search/

Substrings: Normally, query terms are searched for as words, so searching for read won't find documents which only contain the word threaded, even though "read" is a substring of "threaded".

On the same vein a search for EchoPerUserBlacklist would not match wgEchoPerUserBlacklist.

The substring search operator is a tilde. Searching for ~EchoPerUserBlacklist yields among others:

  • T173838: Enable EchoPerUserBlacklist on all Wikimedia wikis with Echo enabled
  • T251331: Remove $wgEchoAgentBlacklist and $wgEchoPerUserBlacklist