Opened 8 years ago

Closed 8 years ago

#4683 closed defect (fixed)

limit=1 gives no results. But without this parameter or with limit=2 all is fine

Reported by: karussell Owned by: geocoding@…
Priority: major Milestone:
Component: nominatim Version:
Keywords: Cc:

Change History (2)

comment:1 Changed 8 years ago by Sarah Hoffmann

The linked_place_id is the culprit here. The search for places does not take it into account but gets the limit. The subsequent lookup in the placex table does look at linked_place_id and reduce the already limited results further.

The easiest fix I can see is to internally work with a limit that is twice the requested limit. That should cover the worst case scenario but also doubles the work load in the worst case. Any other ideas?

comment:2 Changed 8 years ago by Sarah Hoffmann

Resolution: fixed
Status: newclosed

Fixed it now by increasing the limit.

Note: See TracTickets for help on using tickets.