Fix matching

This commit is contained in:
Victor Shcherb 2020-06-11 13:57:11 +02:00
parent cdf795c6af
commit 9df2f79848

View file

@ -414,7 +414,8 @@ public class SearchCoreFactory {
if (object.getName().startsWith("<")) {
return false;
}
if (!phrase.getFirstUnknownNameStringMatcher().matches(stripBraces(sr.localeName))) {
if (!phrase.getUnknownWordToSearchBuildingNameMatcher().matches(stripBraces(sr.localeName))) {
sr.priorityDistance = 5;
}
sr.objectType = ObjectType.STREET;