]> git.openstreetmap.org Git - nominatim.git/commit
do not lookup by address vector when only few tokens are available
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 31 Jul 2023 12:27:39 +0000 (14:27 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 2 Aug 2023 07:25:47 +0000 (09:25 +0200)
commitafdbdb02a12193d75ba7670514779eb25fd3aa25
tree01a26c623d09e9bc7e573ac51d63df74ae2a0a67
parent8adeaa2c7efc1087bacf6a6212e81c06d7097cc1
do not lookup by address vector when only few tokens are available

Names of countries and states are exceedingly rare in the word count
but are very frequent in the address. A short name has the danger
of producing too many results.
nominatim/api/search/db_search_builder.py
test/python/api/search/test_db_search_builder.py