From 9251a6bb4af017065cb7d2861baeae1df7f7b130 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 12 Jan 2021 18:33:43 +0100 Subject: [PATCH] Fix https://github.com/osmandapp/OsmAnd/issues/10454 --- .../java/net/osmand/search/core/SearchCoreFactory.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 5c2faf0b51..d00bf9ffb2 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 @@ -719,9 +719,10 @@ public class SearchCoreFactory { results.put(res.pt.getKeyName(), res); } } - if (nmAdditional != null) { - addAditonals(nmAdditional, results, types.getOtherMapCategory()); - } + // don't spam results with unsearchable additionals like 'description', 'email', ... + // if (nmAdditional != null) { + // addAditonals(nmAdditional, results, types.getOtherMapCategory()); + // } for (PoiCategory c : categories) { PoiTypeResult res = checkPoiType(nm, c); if(res != null) {