Skip to content

[pull] main from opensearch-project:main - #128

Merged
pull[bot] merged 1 commit into
miqdigital:mainfrom
opensearch-project:main
Aug 13, 2026
Merged

[pull] main from opensearch-project:main#128
pull[bot] merged 1 commit into
miqdigital:mainfrom
opensearch-project:main

Conversation

@pull

@pull pull Bot commented Aug 13, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* Support named query scores in Hit.matchedQueries()

matched_queries is now generated as Map<String, Double> instead of the
generic JsonData fallback. A schema driven rule in the code generator
detects the oneOf of a string array and a scalar value map and maps it to
a typed map. The deserializer reads the object form as name to score and
the array form as names with null values.

include_named_queries_score is now sent as a query parameter rather than
in the request body. The server enables the scored map rendering only from
the query parameter, so sending the flag in the body returns names without
scores. The request body property is ignored in the code generator so the
generated client emits the query parameter. See
opensearch-project/OpenSearch#22689 for the
server behavior.

Adds MatchedQueriesTest covering the array and object forms.

Signed-off-by: Sotaro Hikita <bering1814@gmail.com>

* Apply spotless formatting to Overrides.java

Signed-off-by: Sotaro Hikita <bering1814@gmail.com>

* Rework matched_queries as a MatchedQueries tagged union" -m "Replace the
previous Map<String, Double> shape for Hit.matched_queries with a MatchedQueries tagged union
that carries a Names variant (List<String>) and a Scores variant (Map<String, Double>). The
Union is bound through Overrides.PropertyOverride.withMappedType and reuses UnionDeserializer,
following the SourceConfig and FieldValue precedent, so no changes are needed to the object
shape templates or to Field, SpecTransformer, and TypeMapper. Remove the previously added
stringArrayOrMapDeserializer along with the arrayOrMapUnion flag and its wiring.

Signed-off-by: Sotaro Hikita <bering1814@gmail.com>

---------

Signed-off-by: Sotaro Hikita <bering1814@gmail.com>
@pull pull Bot locked and limited conversation to collaborators Aug 13, 2026
@pull pull Bot added the ⤵️ pull label Aug 13, 2026
@pull
pull Bot merged commit 9bf9c15 into miqdigital:main Aug 13, 2026
44 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant