Fix poi additional search

This commit is contained in:
Alexey Kulish 2017-01-25 10:54:28 +03:00
parent b49c2bb6fd
commit 1f038fceb9

View file

@ -557,7 +557,7 @@ public class SearchCoreFactory {
List<PoiType> additionals = pt.getPoiAdditionals(); List<PoiType> additionals = pt.getPoiAdditionals();
if (additionals != null) { if (additionals != null) {
for (PoiType a : additionals) { for (PoiType a : additionals) {
if (!a.isReference() && !results.contains(a) && (nm.matches(a.getKeyName()) || nm.matches(a.getTranslation()))) { if (!a.isReference() && !results.contains(a) && (nm.matches(a.getKeyName().replace('_', ' ')) || nm.matches(a.getTranslation()))) {
results.add(a); results.add(a);
} }
} }