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.
|
|
|
var peliasQuery = require('pelias-query'); |
|
|
|
/** |
|
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; |
|
};
|
|
|