Browse Source

just using weights from pelias-suggester-pipeline (reducing dependency issues with another repo)

pull/67/head
Harish Krishna 10 years ago
parent
commit
743c825b41
  1. 15
      test/unit/query/reverse.js
  2. 15
      test/unit/query/search.js

15
test/unit/query/reverse.js

@ -1,5 +1,6 @@
var generate = require('../../../query/reverse');
var weights = require('pelias-suggester-pipeline').weights;
module.exports.tests = {};
@ -22,19 +23,7 @@ var sort = [
{
'_script': {
'params': {
'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
}
'weights': weights
},
'file': 'weights',
'type': 'number',

15
test/unit/query/search.js

@ -1,5 +1,6 @@
var generate = require('../../../query/search');
var weights = require('pelias-suggester-pipeline').weights;
module.exports.tests = {};
@ -22,19 +23,7 @@ var sort = [
{
'_script': {
'params': {
'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
}
'weights': weights
},
'file': 'weights',
'type': 'number',

Loading…
Cancel
Save