Fix alternative name for poi additionals. Turn on search tests.
This commit is contained in:
parent
850bfe600c
commit
688d193803
2 changed files with 9 additions and 1 deletions
|
@ -702,6 +702,14 @@ public class SearchUICore {
|
||||||
break;
|
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) {
|
if (Algorithms.isEmpty(object.localeName) && object.alternateName != null) {
|
||||||
object.localeName = object.alternateName;
|
object.localeName = object.alternateName;
|
||||||
|
|
|
@ -222,7 +222,7 @@ public class SearchCoreUITest {
|
||||||
});
|
});
|
||||||
if (files != null) {
|
if (files != null) {
|
||||||
for (File f : files) {
|
for (File f : files) {
|
||||||
//testSearchImpl(f);
|
testSearchImpl(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue