|
|
@ -70,13 +70,21 @@ module.exports.tests.confidenceScore = function(test, common) { |
|
|
|
value: 1, |
|
|
|
value: 1, |
|
|
|
center_point: { lat: 100.1, lon: -50.5 }, |
|
|
|
center_point: { lat: 100.1, lon: -50.5 }, |
|
|
|
name: { default: 'test name1' }, |
|
|
|
name: { default: 'test name1' }, |
|
|
|
admin0: 'country1', admin1: 'state1', admin2: 'city1' |
|
|
|
parent: { |
|
|
|
|
|
|
|
country: 'country1', |
|
|
|
|
|
|
|
region: 'state1', |
|
|
|
|
|
|
|
county: 'city1' |
|
|
|
|
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
|
|
|
|
_score: 20, |
|
|
|
value: 2, |
|
|
|
value: 2, |
|
|
|
center_point: { lat: 100.2, lon: -51.5 }, |
|
|
|
center_point: { lat: 100.2, lon: -51.5 }, |
|
|
|
name: { default: 'test name2' }, |
|
|
|
name: { default: 'test name2' }, |
|
|
|
admin0: 'country2', admin1: 'state2', admin2: 'city2', |
|
|
|
parent: { |
|
|
|
_score: 20 |
|
|
|
country: 'country2', |
|
|
|
|
|
|
|
region: 'state2', |
|
|
|
|
|
|
|
county: 'city2' |
|
|
|
|
|
|
|
} |
|
|
|
}], |
|
|
|
}], |
|
|
|
meta: {scores: [10]} |
|
|
|
meta: {scores: [10]} |
|
|
|
}; |
|
|
|
}; |
|
|
|