generated from Nekojimi/JavaMavenTemplate
Searcher: compare strings case-insensitive.
This commit is contained in:
parent
4df2f55922
commit
e6b109125e
|
@ -92,7 +92,7 @@ public abstract class Searcher
|
|||
{
|
||||
if (comparison == null)
|
||||
continue;
|
||||
double score = StringUtils.getJaroWinklerDistance(query.getTextSearch(), comparison);
|
||||
double score = StringUtils.getJaroWinklerDistance(query.getTextSearch().toLowerCase(), comparison.toLowerCase());
|
||||
if (score > fullTextScore)
|
||||
fullTextScore = score;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue