mirror of https://github.com/pelias/api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
333 B
17 lines
333 B
|
|
var peliasQuery = require('pelias-query'), |
|
check = require('check-types'); |
|
|
|
/** |
|
Population / Popularity subquery |
|
**/ |
|
|
|
module.exports = function( vs ){ |
|
|
|
var view = peliasQuery.view.ngrams( vs ); |
|
|
|
view.match['name.default'].analyzer = vs.var('phrase:analyzer'); |
|
delete view.match['name.default'].boost; |
|
|
|
return view; |
|
};
|
|
|