@cumulus/es-client 9.8.0 → 10.0.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.
- package/config/mappings.json +24 -0
- package/esScrollSearch.js +1 -1
- package/package.json +9 -9
package/config/mappings.json
CHANGED
|
@@ -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,7 +42,7 @@ 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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/es-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.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": "
|
|
34
|
-
"@cumulus/errors": "
|
|
35
|
-
"@cumulus/logger": "
|
|
36
|
-
"@cumulus/message": "
|
|
33
|
+
"@cumulus/common": "10.0.0",
|
|
34
|
+
"@cumulus/errors": "10.0.0",
|
|
35
|
+
"@cumulus/logger": "10.0.0",
|
|
36
|
+
"@cumulus/message": "10.0.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.
|
|
41
|
+
"moment": "2.29.1",
|
|
42
42
|
"p-limit": "^1.2.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@cumulus/aws-client": "
|
|
46
|
-
"@cumulus/test-data": "
|
|
45
|
+
"@cumulus/aws-client": "10.0.0",
|
|
46
|
+
"@cumulus/test-data": "10.0.0",
|
|
47
47
|
"p-each-series": "^2.1.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "7c6d2d1cd79b57d6943bbc3d898d0cf975b543b1"
|
|
50
50
|
}
|