-
Notifications
You must be signed in to change notification settings - Fork 121
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
Multisearch examples and formatting #634
Comments
@nhtruong can I take this issue up? |
@tejeshreddy of course! |
@nhtruong just to check with you, the documentation is expected to be changed to clarify the above queries right? |
@hyprstack The body that the @tejeshreddy You can add an entry in |
I am using the opensearchJs client to send requests. When looking through the docs there are no examples on how a multisearch query body should be structured in order to use the client correctly.
Does the user need to format the body such that each query needs to be on a single line as defined here or does the client do this formatting if given a normal array of json objects as seen in the example here using the Ruby api for elasticsearch?
Also, if each object needs to be on a single line, could this be achieved by simply doing a JSON.stringify on the object, as in:
i.e. do I need to format the body to
Or could I pass in
The text was updated successfully, but these errors were encountered: