Fix search issue

This commit is contained in:
Victor Shcherb 2017-04-17 19:43:49 +03:00
parent 12c5524ba9
commit c08484d63e
2 changed files with 7 additions and 1 deletions

View file

@ -684,7 +684,7 @@ public class BinaryMapAddressReaderAdapter {
codedIS.seek(contOffset); codedIS.seek(contOffset);
int len = codedIS.readRawVarint32(); int len = codedIS.readRawVarint32();
int old = codedIS.pushLimit(len); int old = codedIS.pushLimit(len);
obj = readCityHeader(null, contOffset, null); obj = readCityHeader(null, contOffset, reg.attributeTagsTable);
codedIS.popLimit(old); codedIS.popLimit(old);
} }
if (obj != null) { if (obj != null) {

View file

@ -614,6 +614,12 @@ public class SearchPhrase {
} }
} }
} }
if(!sr.firstUnknownWordMatches) {
sr.firstUnknownWordMatches = localeName.equals(getUnknownSearchWord()) ||
getNameStringMatcher().matches(localeName) ||
getNameStringMatcher().matches(otherNames);
}
} }
public int getRadiusSearch(int meters) { public int getRadiusSearch(int meters) {
return (1 << (getRadiusLevel() - 1)) * meters; return (1 << (getRadiusLevel() - 1)) * meters;