Fix search

This commit is contained in:
Victor Shcherb 2017-04-14 10:14:06 +03:00
parent 504d7a86bf
commit 9ae7e2263f

View file

@ -287,7 +287,9 @@ public class SearchCoreFactory {
if (phrase.isNoSelectedType() && bbox != null if (phrase.isNoSelectedType() && bbox != null
&& (phrase.isUnknownSearchWordPresent() || phrase.isEmptyQueryAllowed()) && (phrase.isUnknownSearchWordPresent() || phrase.isEmptyQueryAllowed())
&& phrase.isSearchTypeAllowed(ObjectType.CITY)) { && phrase.isSearchTypeAllowed(ObjectType.CITY)) {
NameStringMatcher nm = phrase.getNameStringMatcher(); String wrd = phrase.getUnknownWordToSearch();
NameStringMatcher nm = phrase.getNameStringMatcher(wrd, phrase.isUnknownSearchWordComplete());
// NameStringMatcher nm = phrase.getNameStringMatcher();
resArray.clear(); resArray.clear();
resArray = townCitiesQR.queryInBox(bbox, resArray); resArray = townCitiesQR.queryInBox(bbox, resArray);
int limit = 0; int limit = 0;