|
|
@ -1,5 +1,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
var generate = require('../../../query/sort'); |
|
|
|
var generate = require('../../../query/sort'); |
|
|
|
|
|
|
|
var admin_boost = 'admin_boost'; |
|
|
|
var population = 'population'; |
|
|
|
var population = 'population'; |
|
|
|
var popularity = 'popularity'; |
|
|
|
var popularity = 'popularity'; |
|
|
|
var weights = require('pelias-suggester-pipeline').weights; |
|
|
|
var weights = require('pelias-suggester-pipeline').weights; |
|
|
@ -16,7 +17,7 @@ module.exports.tests.interface = function(test, common) { |
|
|
|
var expected = [ |
|
|
|
var expected = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
'_script': { |
|
|
|
'_script': { |
|
|
|
'file': 'admin_boost', |
|
|
|
'file': admin_boost, |
|
|
|
'type': 'number', |
|
|
|
'type': 'number', |
|
|
|
'order': 'desc' |
|
|
|
'order': 'desc' |
|
|
|
} |
|
|
|
} |
|
|
|