improve place node search when no areas found

Only look for place nodes in a certain radius according
to the rank_search of the place node.
This commit is contained in:
Sarah Hoffmann
2018-08-04 18:44:17 +02:00
parent 7f10264fb6
commit 646fa53b44
5 changed files with 92 additions and 44 deletions

View File

@@ -111,7 +111,7 @@ Feature: Search queries
When sending json search query "restaurant"
| bounded | viewbox |
| 1 | 9.93027,53.61634,10.10073,53.54500 |
Then result has bounding box in 53.54500,53.61634,9.93027,10.10073
Then result has centroid in 53.54500,53.61634,9.93027,10.10073
Scenario: Prefer results within viewbox
When sending json search query "25 de Mayo" with address