@ -6,7 +6,7 @@
module.exports = {
'admin0': 4,
'admin1': 3,
'admin2': 1,
'admin2': 2,
'local_admin': 1,
'locality':1,
'neighborhood':1
@ -11,24 +11,24 @@ module.exports = function( params ){
var scriptsConfig = [
{
'_script': {
'params': {
'weights': admin_weights
},
'file': 'weights',
'file': popularity,
'type': 'number',
'order': 'desc'
}
'file': population,
@ -21,24 +21,24 @@ var sort = [
'_score',
@ -19,26 +19,26 @@ module.exports.tests.interface = function(test, common) {
var sort = [
@ -19,31 +19,31 @@ module.exports.tests.interface = function(test, common) {
};
var expected = [
'category_weights': category_weights