-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOC] Missing documentation executing stored scripts in update/bulk operations #7248
Comments
Thanks, @camerondurham, did you look in this section? https://opensearch.org/docs/latest/api-reference/script-apis/create-stored-script/ |
Hi @hdhalter , Would it be helpful to clarify if/when stored scripts can be used in other contexts (bulk, update by query, index, etc.)? Or should developers infer that stored scripts can be referenced wherever scripts are allowed? Ref:
I'm okay to close the issue if the current documentation is sufficient. |
@dhwanilpatel - Do you have any thoughts on this? |
While passing script in APIs, we need to pass either "source" or "id", so it seems we can pass the id for the stored script instead of source. We can include this one liner in our documentation so users wont have to go through the code to understand this. |
I'll update this @hdhalter, please assign me. |
What do you want to do?
Tell us about your request. Provide a summary of the request and all versions that are affected.
As an OpenSearch user, I would like to have documentation around how to perform operations using a stored script. The docs cover how to use inline scripts but not how to reference a stored script.
Please let me know if I maybe missed it in documentation, or if this is too much of an "edge-case" to be useful.
Here's a specific, potentially useful example it would nice to have documentation around:
Example below executes the
conditional
script in a cluster with incoming doc inparams
to conditionally update the doc with_id=test-1
. I came across this while answering this amazon-opensearch question and didn't find docs to link to.Also, I'm happy PR as long I know where and how documentation owners think this should be updated.
Thanks!
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.
The text was updated successfully, but these errors were encountered: