From 4b1dcfbc1d31ad81e14c0cbdebd6fd7b1fc4b5e2 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Thu, 3 Mar 2022 13:57:15 -0500 Subject: [PATCH] Add an example of deduplication where order matters This test case came out of evaluating https://github.com/pelias/api/pull/1607. It passes with the current API master branch, fails with https://github.com/pelias/api/pull/1607, but passes with https://github.com/pelias/api/pull/1612 --- test_cases/deduplication.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test_cases/deduplication.json b/test_cases/deduplication.json index 98eb12d..64842b1 100644 --- a/test_cases/deduplication.json +++ b/test_cases/deduplication.json @@ -161,6 +161,26 @@ } ] } + }, + { + "id": 7, + "status": "pass", + "user": "orangejulius", + "endpoint": "autocomplete", + "description": "City record should appear near the top, even if the preferred record started lower down", + "in": { + "text": "Anthering, Austria" + }, + "expected": { + "priorityThresh": 2, + "properties": [ + { + "name": "Anthering", + "country_a": "AUT", + "layer": "locality" + } + ] + } } ] }