Browse Source

bumped query version, updated query name changes + boosts

pull/740/head
Stephen Hess 8 years ago
parent
commit
31f5cc2537
  1. 2
      package.json
  2. 2
      query/structured_geocoding.js
  3. 4
      test/unit/fixture/structured_geocoding/fallback.json

2
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"

2
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 ) );

4
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
}
},
{

Loading…
Cancel
Save