Skip to content

Commit

Permalink
Increase address_count threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-wroniszewski committed Oct 31, 2024
1 parent 1a67610 commit 2890e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nominatim_api/search/db_search_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def yield_lookups(self, name: TokenRange, address: List[TokenRange])\
# To catch remaining results, lookup by name and address
# We only do this if there is a reasonable number of results expected.
exp_count = exp_count / (2**len(addr_tokens)) if addr_tokens else exp_count
if exp_count < 30000 and addr_count < 20000\
if exp_count < 30000 and addr_count < 60000\
and all(t.is_indexed for t in name_partials.values()):
penalty += 0.35 * max(1 if name_fulls else 0.1,
5 - len(name_partials) - len(addr_tokens))
Expand Down

0 comments on commit 2890e1b

Please sign in to comment.