Skip to content

Java issues batch 5 #2552

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
May 28, 2024
Merged

Java issues batch 5 #2552

merged 5 commits into from
May 28, 2024

Conversation

l-trotta
Copy link
Contributor

Fixes provided in this PR:

  • 666: AggregationRange accepting both double and string was probably established because at some point it was also used for RangeQuery, which accepts Objects for parameters to and from. But in the spec we just use it in GeoDistanceAggregation and RangeAggregation, both accepting only doubles. Since the java client generalizes string | double as just string, this results in the server throwing exceptions when called.
  • 673: FieldType enum missing version. docs
  • 690: KeywordProperty missing script and onScriptError fields. server code
  • 696: Normalizer is missing a default type, which for the java client means deserialization error whenever any normalizer was not created through the client (because of the missing type field).
  • 648: DynamicTemplate remodeled to match the current server code. mapping and runtime can be used alternatively (it's explained in the docs) so both fields are maps and only one must be set (therefore the container variant).

Copy link
Member

@flobernd flobernd left a comment

Choose a reason for hiding this comment

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

LGTM!

@flobernd
Copy link
Member

The onScriptError is interesting. I did not find any mention of it in the docs.

@l-trotta l-trotta merged commit 982cc3c into main May 28, 2024
6 checks passed
@l-trotta l-trotta deleted the java-issues-batch-5 branch May 28, 2024 09:57
github-actions bot pushed a commit that referenced this pull request May 28, 2024
* range for aggregations should just accept double (666)

* added version to fieldType enum (673)

* script field missing from keywordProperty (690)

* default variant for normalizers (696)

* remodeled dynamic template (648)

(cherry picked from commit 982cc3c)
l-trotta added a commit that referenced this pull request May 28, 2024
* range for aggregations should just accept double (666)

* added version to fieldType enum (673)

* script field missing from keywordProperty (690)

* default variant for normalizers (696)

* remodeled dynamic template (648)

(cherry picked from commit 982cc3c)

Co-authored-by: Laura Trotta <[email protected]>
l-trotta added a commit that referenced this pull request May 28, 2024
l-trotta added a commit that referenced this pull request May 28, 2024
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.

2 participants