Specifying both "analyzer" and "searchAnalyzer" for a FullTextField breaks the search

Update. I will not edit the original question, in case someone else has the same problem. The issue on my side was that instead of “minGramSize” and “maxGramSize”, I should have had “min_gram” and “max_gram”.