|
|
@ -1,5 +1,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
var generate = require('../../../query/reverse'); |
|
|
|
var generate = require('../../../query/reverse'); |
|
|
|
|
|
|
|
var weights = require('pelias-suggester-pipeline').weights; |
|
|
|
|
|
|
|
|
|
|
|
module.exports.tests = {}; |
|
|
|
module.exports.tests = {}; |
|
|
|
|
|
|
|
|
|
|
@ -22,19 +23,7 @@ var sort = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
'_script': { |
|
|
|
'_script': { |
|
|
|
'params': { |
|
|
|
'params': { |
|
|
|
'weights': { |
|
|
|
'weights': weights |
|
|
|
'geoname': 0, |
|
|
|
|
|
|
|
'address': 4, |
|
|
|
|
|
|
|
'osmnode': 6, |
|
|
|
|
|
|
|
'osmway': 6, |
|
|
|
|
|
|
|
'poi-address': 8, |
|
|
|
|
|
|
|
'neighborhood': 10, |
|
|
|
|
|
|
|
'local_admin': 12, |
|
|
|
|
|
|
|
'locality': 12, |
|
|
|
|
|
|
|
'admin2': 12, |
|
|
|
|
|
|
|
'admin1': 14, |
|
|
|
|
|
|
|
'admin0': 2 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
'file': 'weights', |
|
|
|
'file': 'weights', |
|
|
|
'type': 'number', |
|
|
|
'type': 'number', |
|
|
|