You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A quick prior note: I've asked about it here, since I wasn't sure if it was a client issue, actually. However, after creating that question I've discovered ApiTypeHelper::DANGEROUS_disableRequiredPropertiesCheck(boolean) method, which I am using as a workaround. After acknowledging its javadocs I am 90% sure it is a bug, hence this issue.
The issue regarding ExtendedBounds class is that its builder requires both min and max to be specified. This behavior is different from Elasticsearch server, which has no problem if one (or even both) are missing.
Hello, thank you so much for providing such a detailed report :) this is an issue with the API specification used to produce the Java code, yes those two fields min and max in ExtendedBounds should be optional. We will fix the issue in the specification and regenerate the java code, thanks again!
Java API client version
7.17.9
Java version
11
Elasticsearch Version
7.17.9
Problem description
A quick prior note: I've asked about it here, since I wasn't sure if it was a client issue, actually. However, after creating that question I've discovered
ApiTypeHelper::DANGEROUS_disableRequiredPropertiesCheck(boolean)
method, which I am using as a workaround. After acknowledging its javadocs I am 90% sure it is a bug, hence this issue.The issue regarding
ExtendedBounds
class is that its builder requires bothmin
andmax
to be specified. This behavior is different from Elasticsearch server, which has no problem if one (or even both) are missing.Let's start with some sample bit of data first.
and a sample query:
That yields a response with 4 buckets (3 of them with 0 docs, which is fine.)
Things get complicated once I try to recreate that in Java API:
That yields the exception:
co.elastic.clients.util.MissingRequiredPropertyException: Missing required property 'ExtendedBounds.max'
I've tried similar thing in Rest High Level Client, which is successful:
Bare-json Elasticsearch API allows it, RHLC allows it, but not Java API client.
The text was updated successfully, but these errors were encountered: