Page MenuHomePhabricator

Redirect names are not suggested in the search box, when $wgCirrusSearchPrefixSearchStartsWithAnyWord = true
Open, LowPublicBUG REPORT

Description

Steps to replicate the issue:

What happens?:
No suggestion is turning up.

What should have happened instead?:
It should suggest the redirect page תפילת רבי אלעזר בן ערך, which does exist, and which comes up when you type in the whole name

Software version:
MediaWiki 1.39.4
Elasticsearch 7.10.2
CirrusSearch 6.5.4

Other information (browser name/version, screenshots, etc.):
What is happening is that our wiki has set $wgCirrusSearchPrefixSearchStartsWithAnyWord to true, which has directly caused redirects to stop being auto-completed. As can be seen in the code that runs prefix searches, there are two main code paths, one when $wgCirrusSearchPrefixSearchStartsWithAnyWord is true, and the other when it's false. The false condition queries the redirects, but it looks like the true condition does not.

Any reason why this should be? or can it be fixed?

Thanks!