osm-search / Nominatim

Open Source search based on OpenStreetMap data
https://nominatim.org
GNU General Public License v3.0
2.98k stars 701 forks source link

Improve handling addr:place without a place node #3397

Closed lonvia closed 2 months ago

lonvia commented 2 months ago

If an address point has its own entry in the search_name table, then the tokens for addr:place must always go into the address token list. Everything else causes false matches.

Also adds full terms for addr:* items to the search_name table. They used to be irrelevant but are needed these days because we rerank by full-term matches.

Fixes #3208.