From ae9fc3234cbb766fa742e393fcbd3053e72c4173 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 5 Jan 2021 17:36:30 +0100 Subject: [PATCH] Update script --- .../src/main/java/net/osmand/search/core/SearchCoreFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java b/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java index c221d2ca77..5c2faf0b51 100644 --- a/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java +++ b/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java @@ -650,7 +650,7 @@ public class SearchCoreFactory { if (p.hasObjectType(ObjectType.POI_TYPE)) { return -1; } - if (p.getUnknownWordToSearch().length() >= FIRST_WORD_MIN_LENGTH || p.getRadiusLevel() > 1) { + if (p.getUnknownWordToSearch().length() >= FIRST_WORD_MIN_LENGTH || p.isFirstUnknownSearchWordComplete()) { return SEARCH_AMENITY_BY_NAME_API_PRIORITY_IF_3_CHAR; } return -1;