File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,9 @@ async def async_streaming_bulk(
235235 :arg actions: iterable or async iterable containing the actions to be executed
236236 :arg chunk_size: number of docs in one chunk sent to es (default: 500)
237237 :arg max_chunk_bytes: the maximum size of the request in bytes (default: 100MB)
238+ :arg flush_after_seconds: time in seconds after which a chunk is written even
239+ if hasn't reached `chunk_size` or `max_chunk_bytes`. Set to 0 to not use a
240+ timeout-based flush. (default: 0)
238241 :arg raise_on_error: raise ``BulkIndexError`` containing errors (as `.errors`)
239242 from the execution of the last chunk when some occur. By default we raise.
240243 :arg raise_on_exception: if ``False`` then don't propagate exceptions from
Original file line number Diff line number Diff line change @@ -451,6 +451,9 @@ def streaming_bulk(
451451 :arg actions: iterable containing the actions to be executed
452452 :arg chunk_size: number of docs in one chunk sent to es (default: 500)
453453 :arg max_chunk_bytes: the maximum size of the request in bytes (default: 100MB)
454+ :arg flush_after_seconds: time in seconds after which a chunk is written even
455+ if hasn't reached `chunk_size` or `max_chunk_bytes`. Set to 0 to not use a
456+ timeout-based flush. (default: 0)
454457 :arg raise_on_error: raise ``BulkIndexError`` containing errors (as `.errors`)
455458 from the execution of the last chunk when some occur. By default we raise.
456459 :arg raise_on_exception: if ``False`` then don't propagate exceptions from
@@ -636,6 +639,9 @@ def parallel_bulk(
636639 :arg thread_count: size of the threadpool to use for the bulk requests
637640 :arg chunk_size: number of docs in one chunk sent to es (default: 500)
638641 :arg max_chunk_bytes: the maximum size of the request in bytes (default: 100MB)
642+ :arg flush_after_seconds: time in seconds after which a chunk is written even
643+ if hasn't reached `chunk_size` or `max_chunk_bytes`. Set to 0 to not use a
644+ timeout-based flush. (default: 0)
639645 :arg raise_on_error: raise ``BulkIndexError`` containing errors (as `.errors`)
640646 from the execution of the last chunk when some occur. By default we raise.
641647 :arg raise_on_exception: if ``False`` then don't propagate exceptions from
You can’t perform that action at this time.
0 commit comments