]> git.openstreetmap.org Git - nominatim.git/commitdiff
prefer name-only searches more
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 13 Aug 2023 13:24:16 +0000 (15:24 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 13 Aug 2023 13:24:16 +0000 (15:24 +0200)
nominatim/api/search/db_search_builder.py

index 3ed66a42215aca04d5829e0f0e8d8c35cc1af8a8..377c4be7da959b156b19d531ab5e1511fc5be515 100644 (file)
@@ -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)
 
-        if (len(name_partials) > 3 or exp_count < 1000) and partials_indexed:
+        if (len(name_partials) > 3 or exp_count < 3000) and partials_indexed:
             yield penalty, exp_count, dbf.lookup_by_names(name_tokens, addr_tokens)
             return