Page MenuHomePhabricator

CirrusSearch: * or ? at the start of a word is ignored
Closed, ResolvedPublic

Description

Reported as a followup to T58163 but I'm going to track this as a separate bug.

The problem: searching for things like <<*chokolade>> don't find <<chokolade>> or <<inchokolade>>. Note wildcards like ? and * at the start of the word are inefficient and we've turned them off in production. But they should still be turn-on-able. In this case Cirrus actually eats *s that don't come at the beginning of a word. We should just not eat those *s and continue turn it off using a query flag in production and make the query flag configurable (default to allowed?) for other users.

Event Timeline

Manybubbles raised the priority of this task from to Needs Triage.
Manybubbles updated the task description. (Show Details)
Jdouglas set Security to None.

It seems the goal here then is to add a feature flag, off in wmf production, to allow these to pass through?

Change 210620 had a related patch set uploaded (by EBernhardson):
Disable leading wildcard searches in CirrusSearch

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

Change 210621 had a related patch set uploaded (by EBernhardson):
Allow leading wildcard

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

Change 210621 merged by jenkins-bot:
Allow leading wildcard

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

Change 210620 merged by jenkins-bot:
Disable leading wildcard searches in CirrusSearch

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