-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Discrepancy between multisearch and multisearch template response formats. #83029
Comments
Pinging @elastic/es-search (Team:Search) |
Good catch, |
@javanna Hey! Sorry for resurrecting the issue, but I wondered if help is still wanted for it. If so, I think I have a fix, so I would be happy to submit a PR and have it checked out. |
Help is still wanted, please go ahead @AbeleMM ! |
Thanks @cbuescher! I've opened elastic/elasticsearch-specification#1721 so that we update the API specification for 8.3 |
Elasticsearch version (
bin/elasticsearch --version
): 7.16, 8.0, 8.1.Description of the problem including expected versus actual behavior:
The format of the multisearch response and the multisearch template response are different. The former adds a
status
field in every response item while the latter does not. I guess this is a discrepancy that was introduced when one was updated and not the other.Reported by a user of the Java API Client: elastic/elasticsearch-java#110, workaround added to the API specification: elastic/elasticsearch-specification#1320
MultiSearchResponse
:elasticsearch/server/src/main/java/org/elasticsearch/action/search/MultiSearchResponse.java
Lines 153 to 171 in 533f6e0
MultiSearchTemplateResponse
:elasticsearch/modules/lang-mustache/src/main/java/org/elasticsearch/script/mustache/MultiSearchTemplateResponse.java
Lines 144 to 160 in 533f6e0
The text was updated successfully, but these errors were encountered: