fix search result for interpolation, 11346
This commit is contained in:
parent
e6a4be79f2
commit
63783e1d49
1 changed files with 7 additions and 7 deletions
|
@ -1317,7 +1317,13 @@ public class SearchCoreFactory {
|
||||||
|| !phrase.isSearchTypeAllowed(ObjectType.HOUSE)) {
|
|| !phrase.isSearchTypeAllowed(ObjectType.HOUSE)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if(interpolation) {
|
||||||
|
res.localeName = lw;
|
||||||
|
res.location = b.getLocation(b.interpolation(lw));
|
||||||
|
} else {
|
||||||
res.localeName = b.getName(phrase.getSettings().getLang(), phrase.getSettings().isTransliterate());
|
res.localeName = b.getName(phrase.getSettings().getLang(), phrase.getSettings().isTransliterate());
|
||||||
|
res.location = b.getLocation();
|
||||||
|
}
|
||||||
res.otherNames = b.getAllNames(true);
|
res.otherNames = b.getAllNames(true);
|
||||||
res.object = b;
|
res.object = b;
|
||||||
res.file = file;
|
res.file = file;
|
||||||
|
@ -1328,12 +1334,6 @@ public class SearchCoreFactory {
|
||||||
res.relatedObject = s;
|
res.relatedObject = s;
|
||||||
res.localeRelatedObjectName = s.getName(phrase.getSettings().getLang(), phrase.getSettings().isTransliterate());
|
res.localeRelatedObjectName = s.getName(phrase.getSettings().getLang(), phrase.getSettings().isTransliterate());
|
||||||
res.objectType = ObjectType.HOUSE;
|
res.objectType = ObjectType.HOUSE;
|
||||||
if(interpolation) {
|
|
||||||
res.location = b.getLocation(b.interpolation(lw));
|
|
||||||
res.localeName = lw;
|
|
||||||
} else {
|
|
||||||
res.location = b.getLocation();
|
|
||||||
}
|
|
||||||
res.preferredZoom = 17;
|
res.preferredZoom = 17;
|
||||||
|
|
||||||
resultMatcher.publish(res);
|
resultMatcher.publish(res);
|
||||||
|
|
Loading…
Reference in a new issue