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: reference/api/batches.mdx
+26-18Lines changed: 26 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,21 @@ The `/batches` route gives information about the progress of batches of [asynchr
16
16
```json
17
17
{
18
18
"uid": 0,
19
+
"progress": {
20
+
"steps": [
21
+
{
22
+
"currentStep": "extracting words",
23
+
"finished": 2,
24
+
"total": 9,
25
+
},
26
+
{
27
+
"currentStep": "document",
28
+
"finished": 30546,
29
+
"total": 31944,
30
+
}
31
+
],
32
+
"percentage": 32.8471
33
+
},
19
34
"details": {
20
35
"receivedDocuments": 6,
21
36
"indexedDocuments": 6
@@ -38,21 +53,7 @@ The `/batches` route gives information about the progress of batches of [asynchr
38
53
"duration": "PT0.250518S",
39
54
"startedAt": "2024-12-10T15:20:30.18182Z",
40
55
"finishedAt": "2024-12-10T15:20:30.432338Z",
41
-
"progress": {
42
-
"steps": [
43
-
{
44
-
"currentStep": "extracting words",
45
-
"finished": 2,
46
-
"total": 9,
47
-
},
48
-
{
49
-
"currentStep": "document",
50
-
"finished": 30546,
51
-
"total": 31944,
52
-
}
53
-
],
54
-
"percentage": 32.8471
55
-
}
56
+
"batchStrategy": "batched all enqueued tasks"
56
57
}
57
58
```
58
59
@@ -137,6 +138,11 @@ Size of each internal database, including by how much it changed after a batch w
137
138
**Type**: String<br />
138
139
**Description**: The date and time when the tasks finished `processing`, whether `failed`, `succeeded`, or `canceled`, in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format
139
140
141
+
### `batchStrategy`
142
+
143
+
**Type**: String<br />
144
+
**Description**: A string describing the logic behind the creation of the batch. Can contain useful information when diagnosing indexing performance issues.
145
+
140
146
## Get batches
141
147
142
148
<RouteHighlightermethod="GET"path="/batches" />
@@ -193,13 +199,13 @@ For example, `?uids=0` returns a batch containing the task with a `taskUid` equa
193
199
"results": [
194
200
{
195
201
"uid": 2,
202
+
"progress": null,
196
203
"details": {
197
204
"stopWords": [
198
205
"of",
199
206
"the"
200
207
]
201
208
},
202
-
"progress": null,
203
209
"stats": {
204
210
"totalNbTasks": 1,
205
211
"status": {
@@ -217,7 +223,8 @@ For example, `?uids=0` returns a batch containing the task with a `taskUid` equa
0 commit comments