While it's impossible to store all variations for transliterated string in the index table, still the fully "unaccented" versions should be stored.
$transliterator = Transliterator::createFromRules(':: Any-Latin; :: Latin-ASCII; :: NFD; :: [:Nonspacing Mark:] Remove; :: Lower(); :: NFC;', Transliterator::FORWARD);
$str = $transliterator->transliterate($str);
WARNING: the Transliterator class must be checked if exists, as intl package may not be enabled.
While it's impossible to store all variations for transliterated string in the index table, still the fully "unaccented" versions should be stored.
Strutils class should implementremoveAccentsmethodremoveAccentsuses remove_accents() core function as well, so some degree of accent removal is present if Transliterator is not enabledremoveAccentsto tokenizer, compare original words with tokenized and append them to additional keywordsAn option could be added into search logics to "Force remove accents" from input phrase- bad idea for now