From 1d051e813a1f7604feaea563ad3209a192780df9 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 20 Nov 2023 14:09:19 +0100 Subject: [PATCH] more preference for name-only queries in search --- nominatim/api/search/db_search_builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nominatim/api/search/db_search_builder.py b/nominatim/api/search/db_search_builder.py index 66e7efaf..905b5c62 100644 --- a/nominatim/api/search/db_search_builder.py +++ b/nominatim/api/search/db_search_builder.py @@ -208,7 +208,7 @@ class SearchBuilder: and all(t.is_indexed for t in addr_partials) exp_count = min(t.count for t in name_partials) / (2**(len(name_partials) - 1)) - if (len(name_partials) > 3 or exp_count < 3000) and partials_indexed: + if (len(name_partials) > 3 or exp_count < 8000) and partials_indexed: yield penalty, exp_count, dbf.lookup_by_names(name_tokens, addr_tokens) return -- 2.39.5