diff --git a/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java b/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java index 85923d74096..478ba84e7bd 100644 --- a/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java +++ b/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java @@ -1134,8 +1134,9 @@ private TopIndexMatch matchTopIndex(BinaryMapIndexReader r, SearchPhrase phrase) Collections.sort(possibleValues); for (String s : possibleValues) { translate = getTopIndexTranslation(s); + String normalizeBrand = s.toLowerCase(Locale.ROOT); if (complete) { - if (CollatorStringMatcher.cmatches(collator, search, s, StringMatcherMode.CHECK_ONLY_STARTS_WITH)) { + if (CollatorStringMatcher.cmatches(collator, search, normalizeBrand, StringMatcherMode.CHECK_ONLY_STARTS_WITH)) { topIndexValue = s; break; } else { @@ -1171,7 +1172,7 @@ private TopIndexMatch matchTopIndex(BinaryMapIndexReader r, SearchPhrase phrase) private String getTopIndexTranslation(String value) { String key = TopIndexFilter.getValueKey(value); String translate = types.getPoiTranslation(key); - if (translate.toLowerCase().equals(key)) { + if (translate.toLowerCase(Locale.ROOT).equals(key)) { translate = value; } return translate;