Searcher: compare strings case-insensitive.

This commit is contained in:
Nekojimi 2021-10-02 12:20:21 +01:00
parent 4df2f55922
commit e6b109125e
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public abstract class Searcher
{ {
if (comparison == null) if (comparison == null)
continue; continue;
double score = StringUtils.getJaroWinklerDistance(query.getTextSearch(), comparison); double score = StringUtils.getJaroWinklerDistance(query.getTextSearch().toLowerCase(), comparison.toLowerCase());
if (score > fullTextScore) if (score > fullTextScore)
fullTextScore = score; fullTextScore = score;
} }