Closed stures closed 4 months ago
This is an issue in the API specification that is used to generate the code, where SpanQuery
wasn't labelled as extensible, like the general queries are. This will be fixed in https://github.com/elastic/elasticsearch-specification/pull/2509 and then in the next patch release of the Java client.
Thanks for reporting it.
Great to hear! Thank you!
Description
Java API client version 8.13 Java version 21 Elasticsearch Version 8.13
In the Query class we can implement our own query types using
Kind._Custom
and_customKind
This allows us to make extension functions such as:
These options are missing in the corresponding enum for the SpanQuery class so there seems to be no way to add new query types that work within Spans.
We would like the same option here, it seems like all that is missing is the same option in the enum and corresponding additions to the Deserializer, but I guess we can't make a PR since the code is generated.
Is it possible to use this generator ourselves to generate a custom version of the java client?