File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ POST _reindex
232
232
{
233
233
"source": {
234
234
"index": "kibana_sample_data_logs",
235
- "size": 500
235
+ "size": 50
236
236
},
237
237
"dest": {
238
238
"index": "lang-test",
@@ -245,9 +245,9 @@ POST _reindex
245
245
However, those web log messages are unlikely to contain enough words for the
246
246
model to accurately identify the language.
247
247
248
- TIP: Set the reindex `size` option to a value
249
- smaller than the `queue_capacity` for the trained model deployment. Otherwise, requests might be rejected
250
- with a "too many requests" 429 error code.
248
+ TIP: Set the reindex `size` option to a value smaller than the `queue_capacity`
249
+ for the trained model deployment. Otherwise, requests might be rejected with a
250
+ "too many requests" 429 error code.
251
251
252
252
[discrete]
253
253
[[ml-nlp-inference-discover]]
Original file line number Diff line number Diff line change @@ -216,14 +216,18 @@ you created:
216
216
POST _reindex
217
217
{
218
218
"source": {
219
- "index": "les-miserables"
219
+ "index": "les-miserables",
220
+ "size": 50 <1>
220
221
},
221
222
"dest": {
222
223
"index": "les-miserables-infer",
223
224
"pipeline": "ner"
224
225
}
225
226
}
226
227
--------------------------------------------------
228
+ <1> The default batch size for reindexing is 1000. Reducing `size` to a smaller
229
+ number makes the update of the reindexing process quicker which enables you to
230
+ follow the progress closely and detect errors early.
227
231
228
232
Take a random paragraph from the source document as an example:
229
233
Original file line number Diff line number Diff line change @@ -227,14 +227,18 @@ ingest processor inserts the embedding vector into each document.
227
227
POST _reindex?wait_for_completion=false
228
228
{
229
229
"source": {
230
- "index": "collection"
230
+ "index": "collection",
231
+ "size": 50 <1>
231
232
},
232
233
"dest": {
233
234
"index": "collection-with-embeddings",
234
235
"pipeline": "text-embeddings"
235
236
}
236
237
}
237
238
--------------------------------------------------
239
+ <1> The default batch size for reindexing is 1000. Reducing `size` to a smaller
240
+ number makes the update of the reindexing process quicker which enables you to
241
+ follow the progress closely and detect errors early.
238
242
239
243
The API call returns a task ID that can be used to monitor the progress:
240
244
You can’t perform that action at this time.
0 commit comments