teraslice 0.80.1 → 0.82.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.
|
@@ -93,6 +93,7 @@ module.exports = async function elasticsearchStorage(backendConfig) {
|
|
|
93
93
|
index: indexArg,
|
|
94
94
|
from: from != null ? from : 0,
|
|
95
95
|
size: size != null ? size : 10000,
|
|
96
|
+
type: recordType,
|
|
96
97
|
sort,
|
|
97
98
|
};
|
|
98
99
|
|
|
@@ -190,6 +191,7 @@ module.exports = async function elasticsearchStorage(backendConfig) {
|
|
|
190
191
|
|
|
191
192
|
const esQuery = {
|
|
192
193
|
index: indexArg,
|
|
194
|
+
type: recordType,
|
|
193
195
|
from,
|
|
194
196
|
sort,
|
|
195
197
|
};
|
|
@@ -200,7 +202,9 @@ module.exports = async function elasticsearchStorage(backendConfig) {
|
|
|
200
202
|
esQuery.body = query;
|
|
201
203
|
}
|
|
202
204
|
|
|
203
|
-
|
|
205
|
+
const response = await elasticsearch.count(esQuery);
|
|
206
|
+
|
|
207
|
+
return response;
|
|
204
208
|
}
|
|
205
209
|
|
|
206
210
|
async function update(recordId, updateSpec, indexArg = indexName) {
|
package/lib/storage/state.js
CHANGED
|
@@ -54,6 +54,7 @@ async function stateStorage(context) {
|
|
|
54
54
|
await waitForClient();
|
|
55
55
|
|
|
56
56
|
const { record, index } = _createSliceRecord(exId, slice, state, error);
|
|
57
|
+
|
|
57
58
|
return backend.indexWithId(slice.slice_id, record, index);
|
|
58
59
|
}
|
|
59
60
|
|
|
@@ -73,6 +74,7 @@ async function stateStorage(context) {
|
|
|
73
74
|
data: record
|
|
74
75
|
};
|
|
75
76
|
});
|
|
77
|
+
|
|
76
78
|
return backend.bulkSend(bulkRequest);
|
|
77
79
|
}
|
|
78
80
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teraslice",
|
|
3
3
|
"displayName": "Teraslice",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.82.0",
|
|
5
5
|
"description": "Distributed computing platform for processing JSON data",
|
|
6
6
|
"homepage": "https://github.com/terascope/teraslice#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"ms": "^2.1.3"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@terascope/elasticsearch-api": "^3.3.
|
|
41
|
-
"@terascope/job-components": "^0.58.
|
|
42
|
-
"@terascope/teraslice-messaging": "^0.28.
|
|
43
|
-
"@terascope/utils": "^0.45.
|
|
40
|
+
"@terascope/elasticsearch-api": "^3.3.5",
|
|
41
|
+
"@terascope/job-components": "^0.58.3",
|
|
42
|
+
"@terascope/teraslice-messaging": "^0.28.3",
|
|
43
|
+
"@terascope/utils": "^0.45.3",
|
|
44
44
|
"async-mutex": "^0.4.0",
|
|
45
45
|
"barbe": "^3.0.16",
|
|
46
46
|
"body-parser": "^1.20.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"semver": "^7.3.8",
|
|
62
62
|
"socket.io": "^1.7.4",
|
|
63
63
|
"socket.io-client": "^1.7.4",
|
|
64
|
-
"terafoundation": "^0.
|
|
64
|
+
"terafoundation": "^0.42.3",
|
|
65
65
|
"uuid": "^9.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|