Skip to content
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

"_msearch" does not accept "_source" and "stored_fields" parameters #59841

Closed
SoroushTaheri opened this issue Jul 20, 2020 · 2 comments
Closed
Labels
>enhancement needs:triage Requires assignment of a team area label

Comments

@SoroushTaheri
Copy link

Yesterday I wanted to use "_source" and "stored_fields" in my "_msearch" request but looks like they are not supported in the header section. I tried to read issues similar to my situation and I found this message from @zacharymorn. As far as I am aware, there have been some updates in order to fix this issue but it looks like there are some parameters that still are not supported in "_msearch" request. (in my case, "_source" and "stored_fields")
I would like to know if there is any particular reason behind not implementing this feature or simply there hasn't been enough time to fix the issue.

@SoroushTaheri SoroushTaheri added >enhancement needs:triage Requires assignment of a team area label labels Jul 20, 2020
@jimczi
Copy link
Contributor

jimczi commented Jul 21, 2020

_source and stored_fields can be set in the body section of the _msearch request so we don't consider this as an issue.
Considering the custom format that _msearch uses, the header section is generally for options that cannot be set in the body. Is there a particular reason why you would like to set these options in the header and not in the body ?

@SoroushTaheri
Copy link
Author

As I normally use _source and stored_fields in the header section of a _search request and also based on the documentation for Multi Search API, I thought I should do the same when using _msearch. But apparently, as you just said, using them in the body section works perfectly (and I wasn't aware of that, I have no idea why ...).
So I believe my problem is solved now. Thanks for your response, Jim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement needs:triage Requires assignment of a team area label
Projects
None yet
Development

No branches or pull requests

2 participants