Fix alternative name for poi additionals. Turn on search tests.

This commit is contained in:
crimean 2019-04-08 20:39:10 +03:00
parent 850bfe600c
commit 688d193803
2 changed files with 9 additions and 1 deletions

View file

@ -702,6 +702,14 @@ public class SearchUICore {
break;
}
}
if (Algorithms.isEmpty(object.alternateName) && object.object instanceof Amenity) {
for (String value : ((Amenity) object.object).getAdditionalInfo().values()) {
if (phrase.getNameStringMatcher().matches(value)) {
object.alternateName = value;
break;
}
}
}
}
if (Algorithms.isEmpty(object.localeName) && object.alternateName != null) {
object.localeName = object.alternateName;

View file

@ -222,7 +222,7 @@ public class SearchCoreUITest {
});
if (files != null) {
for (File f : files) {
//testSearchImpl(f);
testSearchImpl(f);
}
}
}