ac-bootstrap-elasticsearch
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,11 @@ | ||
<a name="1.0.1"></a> | ||
## [1.0.1](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v1.0.0..v1.0.1) (2023-04-30 14:07:05) | ||
### Bug Fix | ||
* **App:** Add docCount to bootstrap | MP | [37636dcb7f3df781717bffd2016709bba072d9ba](https://github.com/admiralcloud/ac-bootstrap-bull/commit/37636dcb7f3df781717bffd2016709bba072d9ba) | ||
Show the number of docs in the index during bootstrap | ||
Related issues: [/issues#undefined](https://github.com//issues/undefined) | ||
<a name="1.0.0"></a> | ||
@@ -2,0 +12,0 @@ |
12
index.js
@@ -68,2 +68,9 @@ const _ = require('lodash') | ||
const getIndexStats = async({ index }) => { | ||
const response = await acapi.elasticSearch[index.instance].count({ | ||
index: index.index | ||
}) | ||
return _.get(response, 'body.count') | ||
} | ||
const init = async() => { | ||
@@ -105,2 +112,7 @@ acapi.aclog.headline({ headline: 'ELASTICSEARCH' }) | ||
} | ||
const docCount = await getIndexStats({ index }) | ||
acapi.aclog.listing({ | ||
field: 'DocCount', | ||
value: docCount | ||
}) | ||
} | ||
@@ -107,0 +119,0 @@ } |
{ | ||
"name": "ac-bootstrap-elasticsearch", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "OpenSearch (ElasticSearch) init for AC apps", | ||
@@ -5,0 +5,0 @@ "repository": "admiralcloud/ac-bootstrap-elasticsearch", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14597
198
0