mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
don't even try heavily penalized searches
This commit is contained in:
@@ -95,7 +95,7 @@ class ForwardGeocoder:
|
|||||||
prevresult.accuracy = min(prevresult.accuracy, result.accuracy)
|
prevresult.accuracy = min(prevresult.accuracy, result.accuracy)
|
||||||
else:
|
else:
|
||||||
results[rhash] = result
|
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))
|
log().result_dump('Results', ((r.accuracy, r) for r in lookup_results))
|
||||||
prev_penalty = search.penalty
|
prev_penalty = search.penalty
|
||||||
if dt.datetime.now() >= end_time:
|
if dt.datetime.now() >= end_time:
|
||||||
|
|||||||
Reference in New Issue
Block a user