Browse Source

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.
pull/544/head
Julian Simioni 9 years ago
parent
commit
d7eacaf59e
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 2
      query/search.js

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

Loading…
Cancel
Save