]> git.openstreetmap.org Git - nominatim.git/commit
tweak postcode search
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 20 Jun 2023 08:54:04 +0000 (10:54 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 20 Jun 2023 09:56:43 +0000 (11:56 +0200)
commitd0a1e8e3110bfe3dea221933ab4e8964e8d74f66
tree647600415728e499ff081fcd90fbbbbc68837509
parent1b50381852850807a688270312952d74a309f09c
tweak postcode search

Give a preference to left-right reading, i.e <postcode>,<address>
prefers a postcode search while <address>,<postcode> rather does
an address search.

Also exclude non-addressables, countries and state from results when a
postcode is contained in the query.
nominatim/api/logging.py
nominatim/api/search/db_search_builder.py
nominatim/api/search/db_searches.py
nominatim/api/search/token_assignment.py
test/python/api/search/test_token_assignment.py