@terascope/elasticsearch-api 4.10.2 → 4.11.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/index.js +6 -1
- package/package.json +4 -3
package/index.js
CHANGED
|
@@ -967,6 +967,11 @@ export default function elasticsearchApi(client, logger, _opConfig) {
|
|
|
967
967
|
return distribution === ElasticsearchDistribution.opensearch && majorVersion === 2;
|
|
968
968
|
}
|
|
969
969
|
|
|
970
|
+
function isOpensearch3() {
|
|
971
|
+
const { distribution, majorVersion } = getClientMetadata();
|
|
972
|
+
return distribution === ElasticsearchDistribution.opensearch && majorVersion === 3;
|
|
973
|
+
}
|
|
974
|
+
|
|
970
975
|
function _fixMappingRequest(_params, isTemplate) {
|
|
971
976
|
if (!_params || !_params.body) {
|
|
972
977
|
throw new Error('Invalid mapping request');
|
|
@@ -996,7 +1001,7 @@ export default function elasticsearchApi(client, logger, _opConfig) {
|
|
|
996
1001
|
}
|
|
997
1002
|
}
|
|
998
1003
|
|
|
999
|
-
if (isElasticsearch8(client) || isOpensearch2(client)) {
|
|
1004
|
+
if (isElasticsearch8(client) || isOpensearch2(client) || isOpensearch3(client)) {
|
|
1000
1005
|
delete defaultParams.includeTypeName;
|
|
1001
1006
|
}
|
|
1002
1007
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terascope/elasticsearch-api",
|
|
3
3
|
"displayName": "Elasticsearch API",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.11.0",
|
|
5
5
|
"description": "Elasticsearch client api used across multiple services, handles retries and exponential backoff",
|
|
6
6
|
"homepage": "https://github.com/terascope/teraslice/tree/master/packages/elasticsearch-api#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -21,11 +21,12 @@
|
|
|
21
21
|
"test:elasticsearch8": "TEST_RESTRAINED_ELASTICSEARCH='true' ELASTICSEARCH_VERSION='8.1.2' node ../scripts/bin/ts-scripts test ../elasticsearch-api --",
|
|
22
22
|
"test:opensearch1": "TEST_RESTRAINED_OPENSEARCH='true' node ../scripts/bin/ts-scripts test --debug ../elasticsearch-api --",
|
|
23
23
|
"test:opensearch2": "TEST_RESTRAINED_OPENSEARCH='true' OPENSEARCH_VERSION='2.15.0' node ../scripts/bin/ts-scripts test --debug ../elasticsearch-api --",
|
|
24
|
+
"test:opensearch3": "TEST_RESTRAINED_OPENSEARCH='true' OPENSEARCH_VERSION='3.1.0' node ../scripts/bin/ts-scripts test --debug ../elasticsearch-api --",
|
|
24
25
|
"test:watch": "TEST_RESTRAINED_ELASTICSEARCH='true' node ../scripts/bin/ts-scripts test --watch ../elasticsearch-api --"
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
27
28
|
"@terascope/types": "~1.4.3",
|
|
28
|
-
"@terascope/utils": "~1.9.
|
|
29
|
+
"@terascope/utils": "~1.9.3",
|
|
29
30
|
"bluebird": "~3.7.2",
|
|
30
31
|
"setimmediate": "~1.0.5"
|
|
31
32
|
},
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
"@opensearch-project/opensearch": "~1.2.0",
|
|
34
35
|
"@types/elasticsearch": "~5.0.43",
|
|
35
36
|
"elasticsearch": "~15.4.1",
|
|
36
|
-
"elasticsearch-store": "~1.
|
|
37
|
+
"elasticsearch-store": "~1.12.0",
|
|
37
38
|
"elasticsearch6": "npm:@elastic/elasticsearch@~6.8.0",
|
|
38
39
|
"elasticsearch7": "npm:@elastic/elasticsearch@~7.17.0",
|
|
39
40
|
"elasticsearch8": "npm:@elastic/elasticsearch@~8.15.0"
|