]> git.openstreetmap.org Git - nominatim.git/commit
do not rerank address by full match in postcode search
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 20 Feb 2025 09:15:03 +0000 (10:15 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 20 Feb 2025 09:29:03 +0000 (10:29 +0100)
commitadd9244a2f43a27c41fab2c8f95b14c89d97b0e5
treeedacae5196b925147f9455be7dbdd789c4b64d3d
parent97ed168996cd34f8822b26ceb3054990372440ad
do not rerank address by full match in postcode search

The reranking result will not be completely correct because
the address of a postcode refer to the address _and_ name
of the parent and reranking was only done against the
address. We assume here that the postcode is precise enough
as to not require a penalty to to partial matches.
src/nominatim_api/search/db_searches.py