@cumulus/es-client 9.6.0 → 10.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -538,6 +538,26 @@
538
538
  "type": "date"
539
539
  }
540
540
  }
541
+ },
542
+ {
543
+ "nested_final_payload_fields": {
544
+ "path_match": "finalPayload.*",
545
+ "match_mapping_type": "object",
546
+ "mapping": {
547
+ "type": "object",
548
+ "dynamic": false
549
+ }
550
+ }
551
+ },
552
+ {
553
+ "nested_original_payload_fields": {
554
+ "path_match": "originalPayload.*",
555
+ "match_mapping_type": "object",
556
+ "mapping": {
557
+ "type": "object",
558
+ "dynamic": false
559
+ }
560
+ }
541
561
  }
542
562
  ],
543
563
  "properties": {
@@ -594,6 +614,10 @@
594
614
  },
595
615
  "timestamp": {
596
616
  "type": "date"
617
+ },
618
+ "tasks": {
619
+ "type": "object",
620
+ "dynamic": false
597
621
  }
598
622
  }
599
623
  }
package/esScrollSearch.js CHANGED
@@ -42,14 +42,14 @@ class ESScrollSearch extends Search {
42
42
  let response;
43
43
  if (!this.scrollId) {
44
44
  const searchParams = this._buildSearch();
45
- searchParams.size = process.env.ES_SCROLL_SIZE || defaultESScrollSize;
45
+ searchParams.size = Number(process.env.ES_SCROLL_SIZE || defaultESScrollSize);
46
46
  searchParams.scroll = process.env.ES_SCROLL || defaultESScrollDuration;
47
47
  response = await this.client.search(searchParams);
48
48
  this.scrollId = response.body._scroll_id;
49
49
  } else {
50
50
  response = await this.client.scroll({
51
51
  scrollId: this.scrollId,
52
- scroll: defaultESScrollDuration,
52
+ scroll: process.env.ES_SCROLL || defaultESScrollDuration,
53
53
  });
54
54
  this.scrollId = response.body._scroll_id;
55
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/es-client",
3
- "version": "9.6.0",
3
+ "version": "10.0.0-beta.0",
4
4
  "description": "Utilities for working with Elasticsearch",
5
5
  "keywords": [
6
6
  "CUMULUS",
@@ -30,21 +30,21 @@
30
30
  "author": "Cumulus Authors",
31
31
  "license": "Apache-2.0",
32
32
  "dependencies": {
33
- "@cumulus/common": "9.6.0",
34
- "@cumulus/errors": "9.6.0",
35
- "@cumulus/logger": "9.6.0",
36
- "@cumulus/message": "9.6.0",
33
+ "@cumulus/common": "10.0.0-beta.0",
34
+ "@cumulus/errors": "10.0.0-beta.0",
35
+ "@cumulus/logger": "10.0.0-beta.0",
36
+ "@cumulus/message": "10.0.0-beta.0",
37
37
  "@elastic/elasticsearch": "^5.6.20",
38
38
  "aws-elasticsearch-connector": "8.2.0",
39
39
  "aws-sdk": "^2.585.0",
40
40
  "lodash": "~4.17.20",
41
- "moment": "2.24.0",
41
+ "moment": "2.29.1",
42
42
  "p-limit": "^1.2.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@cumulus/aws-client": "9.6.0",
46
- "@cumulus/test-data": "9.6.0",
45
+ "@cumulus/aws-client": "10.0.0-beta.0",
46
+ "@cumulus/test-data": "10.0.0-beta.0",
47
47
  "p-each-series": "^2.1.0"
48
48
  },
49
- "gitHead": "484f939c802b1ff7c82c08234e7d1ed10eb568cf"
49
+ "gitHead": "bc283986be627ba06a4084cabd4e01d1540d14c7"
50
50
  }