From 0cc2f2483c92c263b252bdcd933a4efafb9ec32f Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 21 Jan 2025 14:09:28 +0100 Subject: [PATCH] feat(query): improve unit number sorting for fallback.housenumber queries --- package.json | 2 +- test/unit/fixture/search_fallback.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d966c6ae1..dac9f7f37 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "pelias-microservice-wrapper": "^1.10.0", "pelias-model": "^9.0.0", "pelias-parser": "2.2.0", - "pelias-query": "^11.2.0", + "pelias-query": "pelias/query#search-address-fallback-sorting", "pelias-sorting": "^1.7.0", "predicates": "^2.0.0", "regenerate": "^1.4.0", diff --git a/test/unit/fixture/search_fallback.js b/test/unit/fixture/search_fallback.js index 11943e72b..fc240a1a0 100644 --- a/test/unit/fixture/search_fallback.js +++ b/test/unit/fixture/search_fallback.js @@ -185,6 +185,13 @@ module.exports = { } ], 'should': [ + { + 'match_phrase': { + 'phrase.default': { + 'query': 'number value' + } + } + }, { 'match_phrase': { 'address_parts.zip': {