I'm running a MediaWiki instance that I just upgraded to the latest version at the time of this writing, 1.32.0. This wiki is nearly 10 years old and has gone through a number of upgrades.
It's a wiki in French language, and something annoying for French speakers is that the built-in search has always considered accented characters different from their non-accented counterparts, version after version.
For example, searching for Aromathérapie returns a number of results, while searching for Aromatherapie returns 0 results.
I thought that this was a database collation issue at first, until I noticed that the searchindex table is actually populated with ASCII-encoded UTF-8 words. Taking the example above, aromathérapie is stored as aromathu8c3a9rapie, so changing the table collation does not help.
Digging through the source code, I found the SearchMySQL::normalizeText() method that is responsible for this encoding.
And as far as I can see, the only normalization that this method does prior to encoding is lowercasing:
MediaWikiServices::getInstance()->getContentLanguage()->lc( $out )
So as it stands, it looks like there is no way to make the built-in search ignore accents.
I googled quite a lot for solutions, and found mostly old, unrelevant threads. I'm really surprised to not find more literature on the subject.
How can I make the MediaWiki search case- AND accents- insensitive?