mirror of https://github.com/pelias/api.git
missinglink
9 years ago
10 changed files with 37 additions and 62 deletions
@ -0,0 +1,16 @@ |
|||||||
|
|
||||||
|
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; |
||||||
|
}; |
Loading…
Reference in new issue