Browse Source

Merge pull request #544 from pelias/greenkeeper-pelias-query-7.0.0

Update pelias-query to version 7.0.0 🚀
pull/545/head
Stephen K Hess 9 years ago
parent
commit
c8d2002122
  1. 2
      package.json
  2. 2
      query/search.js

2
package.json

@ -52,7 +52,7 @@
"pelias-config": "^1.0.1", "pelias-config": "^1.0.1",
"pelias-logger": "^0.0.8", "pelias-logger": "^0.0.8",
"pelias-model": "^4.0.0", "pelias-model": "^4.0.0",
"pelias-query": "6.3.0", "pelias-query": "7.0.0",
"pelias-suggester-pipeline": "2.0.4", "pelias-suggester-pipeline": "2.0.4",
"pelias-text-analyzer": "^1.0.1", "pelias-text-analyzer": "^1.0.1",
"stats-lite": "1.0.3", "stats-lite": "1.0.3",

2
query/search.js

@ -37,7 +37,7 @@ query.score( peliasQuery.view.address('postcode') );
// multi_match is appropriate. // multi_match is appropriate.
query.score( peliasQuery.view.admin('country_a') ); query.score( peliasQuery.view.admin('country_a') );
query.score( peliasQuery.view.admin('region_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 // non-scoring hard filters
query.filter( peliasQuery.view.boundary_circle ); query.filter( peliasQuery.view.boundary_circle );

Loading…
Cancel
Save