From c39fc5d180247f777fde20e79cdd1a0b312eb23c Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 26 Mar 2024 22:00:25 +0100 Subject: [PATCH] don't even try heavily penalized searches --- nominatim/api/search/geocoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nominatim/api/search/geocoder.py b/nominatim/api/search/geocoder.py index 711f8383..775606aa 100644 --- a/nominatim/api/search/geocoder.py +++ b/nominatim/api/search/geocoder.py @@ -95,7 +95,7 @@ class ForwardGeocoder: prevresult.accuracy = min(prevresult.accuracy, result.accuracy) else: results[rhash] = result - min_ranking = min(min_ranking, result.accuracy * 1.2) + min_ranking = min(min_ranking, result.accuracy * 1.2, 2.0) log().result_dump('Results', ((r.accuracy, r) for r in lookup_results)) prev_penalty = search.penalty if dt.datetime.now() >= end_time: