From ec3903fc6200c96d30dc47a5b23f232472232417 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 7 Nov 2016 01:16:27 +0100 Subject: [PATCH] Fix #3020 --- OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java | 2 +- 1 file changed, 1 insertion(+), 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 6d29b1d500..fef9f511fc 100644 --- a/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java +++ b/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java @@ -272,7 +272,7 @@ public class SearchCoreFactory { private void searchByName(final SearchPhrase phrase, final SearchResultMatcher resultMatcher) throws IOException { - if(phrase.getRadiusLevel() > 1 || phrase.getUnknownSearchWordLength() > 3) { + if(phrase.getRadiusLevel() > 1 || phrase.getUnknownSearchWordLength() > 3 || phrase.getUnknownSearchWords().size() > 0) { final boolean locSpecified = phrase.getLastTokenLocation() != null; LatLon loc = phrase.getLastTokenLocation(); final List immediateResults = new ArrayList<>();