Skip to content

Commit debd585

Browse files
committed
fix: python
1 parent b8f1257 commit debd585

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/python/search_helpers.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,13 @@
281281
index_name: str,
282282
objects: List[Dict[str, Any]],
283283
create_if_not_exists: bool = False,
284+
wait_for_tasks: bool = False,
284285
request_options: Optional[Union[dict, RequestOptions]] = None,
285286
) -> List[BatchResponse]:
286287
"""
287288
Helper: Replaces object content of all the given objects according to their respective `objectID` field. The `chunked_batch` helper is used under the hood, which creates a `batch` requests with at most 1000 objects in it.
288289
"""
289-
return {{^isSyncClient}}await {{/isSyncClient}}self.chunked_batch(index_name=index_name, objects=objects, action=Action.PARTIALUPDATEOBJECT if create_if_not_exists else Action.PARTIALUPDATEOBJECTNOCREATE, request_options=request_options)
290+
return {{^isSyncClient}}await {{/isSyncClient}}self.chunked_batch(index_name=index_name, objects=objects, action=Action.PARTIALUPDATEOBJECT if create_if_not_exists else Action.PARTIALUPDATEOBJECTNOCREATE, wait_for_tasks=wait_for_tasks, request_options=request_options)
290291
291292
{{^isSyncClient}}async {{/isSyncClient}}def chunked_batch(
292293
self,

0 commit comments

Comments
 (0)