pelias/query

`StructuredFallbackQuery` scoring of `venue` queries.

Opened this issue · 0 comments

When specifying the venue param for /v1/search/structured (ie. when searching for a POI), additional information, such as the postcode and street fields are not considered for scoring.

function addQuery(vs) {

This results in POI results being returned in insertion order rather than better matches being shown first.

Examples:

The second result matches the postalcode 6011, yet is displayed second:

Screenshot 2024-04-16 at 17 02 48 Screenshot 2024-04-16 at 17 02 53

Adding the address information of the second result returns only address layer results:

Screenshot 2024-04-16 at 17 05 16 Screenshot 2024-04-16 at 17 05 23

Manually specifying layers=venue shows the same results as the original query (incorrectly ordered):

Screenshot 2024-04-16 at 17 05 59 Screenshot 2024-04-16 at 17 06 04