Skip to content

Commit 5fab077

Browse files
committed
Add documentation for script as a dict in update
1 parent 4cc3871 commit 5fab077

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

elasticsearch_dsl/document.py

+3
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,11 @@ def update(
373373
:arg doc_as_upsert: Instead of sending a partial doc plus an upsert
374374
doc, setting doc_as_upsert to true will use the contents of doc as
375375
the upsert value
376+
:arg script: Either the source code of the script or the actual dict
377+
assigned to the ``script`` field in the update
376378
:arg return_doc_meta: set to ``True`` to return all metadata from the
377379
index API call instead of only the operation result
380+
:arg fields: params for the script
378381
379382
:return operation result noop/updated
380383
"""

0 commit comments

Comments
 (0)