From 8beabaa80e3338c6301787a6469870a097b8dd83 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 14 Apr 2017 10:14:06 +0300 Subject: [PATCH] Fix search --- OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java b/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java index 6c44d40136..7ca4cfcea8 100644 --- a/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java +++ b/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java @@ -287,7 +287,9 @@ public class SearchCoreFactory { if (phrase.isNoSelectedType() && bbox != null && (phrase.isUnknownSearchWordPresent() || phrase.isEmptyQueryAllowed()) && 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 = townCitiesQR.queryInBox(bbox, resArray); int limit = 0;