prefer name-only searches more

This commit is contained in:
Sarah Hoffmann 2023-08-13 15:24:16 +02:00
parent b710297d05
commit 746dd057b9

View 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