diff --git a/package.json b/package.json index 0e18e8c6..ff2f8d71 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "pelias-labels": "1.5.1", "pelias-logger": "0.1.0", "pelias-model": "4.3.0", - "pelias-query": "8.10.0", + "pelias-query": "pelias/query#c183594", "pelias-text-analyzer": "1.6.0", "stats-lite": "2.0.3", "through2": "2.0.1" diff --git a/query/structured_geocoding.js b/query/structured_geocoding.js index 2d8a7ea2..a69f42bb 100644 --- a/query/structured_geocoding.js +++ b/query/structured_geocoding.js @@ -6,7 +6,7 @@ var peliasQuery = require('pelias-query'), //------------------------------ // general-purpose search query //------------------------------ -var structuredQuery = new peliasQuery.layout.ComponentFallbackQuery(); +var structuredQuery = new peliasQuery.layout.StructuredFallbackQuery(); // scoring boost structuredQuery.score( peliasQuery.view.focus_only_function( peliasQuery.view.phrase ) ); diff --git a/test/unit/fixture/structured_geocoding/fallback.json b/test/unit/fixture/structured_geocoding/fallback.json index 965b188f..a957b72c 100644 --- a/test/unit/fixture/structured_geocoding/fallback.json +++ b/test/unit/fixture/structured_geocoding/fallback.json @@ -101,7 +101,7 @@ "layer": "address" } }, - "boost": 50 + "boost": 10 } }, { @@ -194,7 +194,7 @@ "layer": "street" } }, - "boost": 100 + "boost": 5 } }, {