Skip to content

Support include_names_queries_score #982

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

Merged
merged 5 commits into from
Apr 2, 2025

Conversation

l-trotta
Copy link
Contributor

@l-trotta l-trotta commented Apr 2, 2025

Generated output + unit test handling matched_queries as an actual array | map union.
Generator reference: https://github.com/elastic/elastic-client-generator-java/pull/58
Fixes #634

@l-trotta l-trotta requested a review from swallez April 2, 2025 13:13
// Array case, deserializing it into a map with null values
if (event == Event.START_ARRAY) {
while ((event = parser.next()) != Event.END_ARRAY) {
JsonpUtils.ensureAccepts(itemDeserializer, parser, event);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be JsonpUtils.expectEvent(Event.VALUE_STRING, event): itemDeserializer is for map values, and in the case of an array we only have string values that would be keys in the map.

@l-trotta l-trotta merged commit 93f0b50 into main Apr 2, 2025
9 checks passed
@l-trotta l-trotta deleted the support-include-names-queries-score branch April 2, 2025 14:12
github-actions bot pushed a commit that referenced this pull request Apr 2, 2025
* prep

* regen on generator changes + unit test

* restore include_names_queries_score

* checkstyle

* array can only expect string in this case
l-trotta added a commit that referenced this pull request Apr 3, 2025
* prep

* regen on generator changes + unit test

* restore include_names_queries_score

* checkstyle

* array can only expect string in this case

Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support include_named_queries_score in search requests
2 participants