Browse Source

upgrade to ES2+

pull/538/head
Peter Johnson 9 years ago
parent
commit
dd5215cbae
  1. 4
      package.json
  2. 2
      query/autocomplete_defaults.js
  3. 2
      query/reverse_defaults.js
  4. 2
      query/search_defaults.js
  5. 3
      test/unit/fixture/reverse_boundary_circle.js
  6. 1
      test/unit/fixture/reverse_null_island.js
  7. 1
      test/unit/fixture/reverse_standard.js
  8. 1
      test/unit/fixture/reverse_with_boundary_country.js
  9. 1
      test/unit/fixture/reverse_with_source_filtering.js
  10. 1
      test/unit/fixture/search_linguistic_bbox.js
  11. 1
      test/unit/fixture/search_linguistic_focus_bbox.js

4
package.json

@ -51,10 +51,10 @@
"lodash": "^4.5.0",
"markdown": "0.5.0",
"morgan": "1.7.0",
"pelias-config": "^1.0.1",
"pelias-config": "git://github.com/pelias/config.git#elasticsearch2",
"pelias-logger": "^0.0.8",
"pelias-model": "^4.0.0",
"pelias-query": "6.3.0",
"pelias-query": "git://github.com/pelias/query.git#elasticsearch2",
"pelias-suggester-pipeline": "2.0.4",
"pelias-text-analyzer": "^1.0.1",
"stats-lite": "1.0.3",

2
query/autocomplete_defaults.js

@ -15,10 +15,8 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'boundary:circle:radius': '50km',
'boundary:circle:distance_type': 'plane',
'boundary:circle:optimize_bbox': 'indexed',
'boundary:circle:_cache': true,
'boundary:rect:type': 'indexed',
'boundary:rect:_cache': true,
'ngram:analyzer': 'peliasQueryPartialToken',
'ngram:field': 'name.default',

2
query/reverse_defaults.js

@ -15,10 +15,8 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'boundary:circle:radius': '500km',
'boundary:circle:distance_type': 'plane',
'boundary:circle:optimize_bbox': 'indexed',
'boundary:circle:_cache': true,
'boundary:rect:type': 'indexed',
'boundary:rect:_cache': true,
'ngram:analyzer': 'peliasQueryPartialToken',
'ngram:field': 'name.default',

2
query/search_defaults.js

@ -15,10 +15,8 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'boundary:circle:radius': '50km',
'boundary:circle:distance_type': 'plane',
'boundary:circle:optimize_bbox': 'indexed',
'boundary:circle:_cache': true,
'boundary:rect:type': 'indexed',
'boundary:rect:_cache': true,
'ngram:analyzer': 'peliasIndexOneEdgeGram',
'ngram:field': 'name.default',

3
test/unit/fixture/reverse_boundary_circle.js

@ -14,7 +14,6 @@ module.exports = {
'distance': vs.distance,
'distance_type': 'plane',
'optimize_bbox': 'indexed',
'_cache': true,
'center_point': {
'lat': 29.49136,
'lon': -82.50622
@ -41,4 +40,4 @@ module.exports = {
],
'size': vs.size,
'track_scores': true
};
};

1
test/unit/fixture/reverse_null_island.js

@ -16,7 +16,6 @@ module.exports = {
'distance': '500km',
'distance_type': 'plane',
'optimize_bbox': 'indexed',
'_cache': true,
'center_point': {
'lat': 0,
'lon': 0

1
test/unit/fixture/reverse_standard.js

@ -16,7 +16,6 @@ module.exports = {
'distance': '500km',
'distance_type': 'plane',
'optimize_bbox': 'indexed',
'_cache': true,
'center_point': {
'lat': 29.49136,
'lon': -82.50622

1
test/unit/fixture/reverse_with_boundary_country.js

@ -25,7 +25,6 @@ module.exports = {
'distance': '500km',
'distance_type': 'plane',
'optimize_bbox': 'indexed',
'_cache': true,
'center_point': {
'lat': 29.49136,
'lon': -82.50622

1
test/unit/fixture/reverse_with_source_filtering.js

@ -16,7 +16,6 @@ module.exports = {
'distance': '500km',
'distance_type': 'plane',
'optimize_bbox': 'indexed',
'_cache': true,
'center_point': {
'lat': 29.49136,
'lon': -82.50622

1
test/unit/fixture/search_linguistic_bbox.js

@ -86,7 +86,6 @@ module.exports = {
'bottom': 47.47,
'left': -103.16
},
'_cache': true,
'type': 'indexed'
}
}]

1
test/unit/fixture/search_linguistic_focus_bbox.js

@ -116,7 +116,6 @@ module.exports = {
'bottom': 47.47,
'left': -103.16
},
'_cache': true,
'type': 'indexed'
}
}]

Loading…
Cancel
Save