From ca0b121bdec4ff3d57d198cb373d64c0a2eefda3 Mon Sep 17 00:00:00 2001 From: greenkeeperio-bot Date: Tue, 17 May 2016 14:26:32 -0700 Subject: [PATCH 1/2] chore(package): update pelias-query to version 7.0.0 https://greenkeeper.io/ --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 26ffa303..7c6f5fc7 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "pelias-config": "^1.0.1", "pelias-logger": "^0.0.8", "pelias-model": "^4.0.0", - "pelias-query": "6.3.0", + "pelias-query": "7.0.0", "pelias-suggester-pipeline": "2.0.4", "pelias-text-analyzer": "^1.0.1", "stats-lite": "1.0.3", From d7eacaf59e3f7661f83e2eeb15a6ee8a4f70ba27 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Wed, 18 May 2016 09:31:15 -0400 Subject: [PATCH 2/2] Fix mistaken order of parameters peliasAdmin was supposed to be a parameter to the multi match view, but instead it was being sent to the score view and ignored. Thanks to @trescube for catching this. --- query/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query/search.js b/query/search.js index 5689d9ec..75406fe7 100644 --- a/query/search.js +++ b/query/search.js @@ -37,7 +37,7 @@ query.score( peliasQuery.view.address('postcode') ); // multi_match is appropriate. query.score( peliasQuery.view.admin('country_a') ); query.score( peliasQuery.view.admin('region_a') ); -query.score( peliasQuery.view.admin_multi_match(adminFields), 'peliasAdmin' ); +query.score( peliasQuery.view.admin_multi_match(adminFields, 'peliasAdmin') ); // non-scoring hard filters query.filter( peliasQuery.view.boundary_circle );