You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: protos/schemas/document.proto
+22-15Lines changed: 22 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -211,14 +211,23 @@ message BulkResponseBody {
211
211
// [optional] If true, one or more of the operations in the bulk request did not complete successfully.
212
212
optionalboolerrors=1;
213
213
// [optional] Contains the result of each operation in the bulk request, in the order they were submitted.
214
-
repeatedResponseItemitems=2;
214
+
repeatedItemitems=2;
215
215
// [optional] How long, in milliseconds, it took to process the bulk request.
216
216
optionalint64took=3;
217
217
// [optional] How long, in milliseconds, it took to process documents through an ingest pipeline
218
218
optionalint64ingest_took=4;
219
219
220
220
}
221
221
222
+
messageItem {
223
+
oneofitem {
224
+
ResponseItemcreate=1;
225
+
ResponseItemdelete=2;
226
+
ResponseItemindex=3;
227
+
ResponseItemupdate=4;
228
+
}
229
+
}
230
+
222
231
enumResponseOpType {
223
232
RESPONSE_OP_TYPE_CREATE=0;
224
233
RESPONSE_OP_TYPE_INDEX=1;
@@ -227,37 +236,35 @@ enum ResponseOpType {
227
236
}
228
237
229
238
messageResponseItem {
230
-
// [required] the value are "create", "update", "index" and "delete"
231
-
ResponseOpTyperesponse_op_type=1;
232
239
// [required] Name of the index associated with the operation. If the operation targeted a data stream, this is the backing index into which the document was written.
233
-
stringunderscore_index=2;
240
+
stringunderscore_index=1;
234
241
// [required] HTTP status code returned for the operation.
235
242
// TODO: use grpc status code instead
236
-
int32status=3;
243
+
int32status=2;
237
244
// [optional] The document type.
238
-
optionalstringunderscore_type=4;
245
+
optionalstringunderscore_type=3;
239
246
240
247
// [optional] The document ID associated with the operation.
241
-
optionalIdunderscore_id=5;
248
+
optionalIdunderscore_id=4;
242
249
243
250
// [optional] Contains additional information about the failed operation.
244
-
optionalErrorCauseerror=6;
251
+
optionalErrorCauseerror=5;
245
252
246
253
// [optional] The primary term assigned to the document for the operation.
247
-
optionalint64underscore_primary_term=7;
254
+
optionalint64underscore_primary_term=6;
248
255
249
256
// [optional] Result of the operation. Successful values are `created`, `deleted`, and `updated`.
250
-
optionalstringresult=8;
257
+
optionalstringresult=7;
251
258
// [optional] The sequence number assigned to the document for the operation. Sequence numbers are used to ensure an older version of a document doesn't overwrite a newer version
252
-
optionalint64underscore_seq_no=9;
259
+
optionalint64underscore_seq_no=8;
253
260
// [optional] Contains shard information for the operation. This parameter is only returned for successful operations.
254
-
optionalShardInfounderscore_shards=10;
261
+
optionalShardInfounderscore_shards=9;
255
262
// [optional] The document version associated with the operation. The document version is incremented each time the document is updated. This parameter is only returned for successful actions.
256
-
optionalint64underscore_version=11;
263
+
optionalint64underscore_version=10;
257
264
// [optional] if `true`, it requires immediate visibility of the document
0 commit comments