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
294 B

var peliasQuery = require('pelias-query');
/**
Population / Popularity subquery
**/
module.exports = function( vs ){
var view = peliasQuery.view.ngrams( vs );
view.match['name.default'].analyzer = 'peliasQueryFullToken';
delete view.match['name.default'].boost;
return view;
};