mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
prefer name-only searches more
This commit is contained in:
@@ -208,7 +208,7 @@ class SearchBuilder:
|
|||||||
and all(t.is_indexed for t in addr_partials)
|
and all(t.is_indexed for t in addr_partials)
|
||||||
exp_count = min(t.count for t in name_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)
|
yield penalty, exp_count, dbf.lookup_by_names(name_tokens, addr_tokens)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user