]> git.openstreetmap.org Git - nominatim.git/commit
do not return POIs when dropping house number in query
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 17 Jun 2021 10:05:33 +0000 (12:05 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 17 Jun 2021 12:21:20 +0000 (14:21 +0200)
commitfe11d3cbbd22e73042ac657e76bb8aca447c8b50
tree36917163feeda5dadc0ff79e0ceb594ce7e1fd9a
parent38fbc4fcbbfa4dbda664314caccf0c05675fc679
do not return POIs when dropping house number in query

We've previously added searching through rank 30 in a house
number search to enable searches for house number+name.
This had the unintended side effect that rank 30 objects
are also returned in s search that dropped the house number
from the query. This is wrong because POIs cannot function
as a parent to a house number.

This fix drops all rank 30 objects from the results for a
house number search if they do not match the requested house
number.
lib-php/Result.php
lib-php/SearchDescription.php
test/bdd/db/query/search_simple.feature