elastic / elasticsearch-java

Official Elasticsearch Java Client
Apache License 2.0
408 stars 237 forks source link

Add ES|QL version support with its default value #791

Closed swallez closed 4 months ago

swallez commented 4 months ago

Starting with version 8.14, ES|QL requires a query language version to be sent in requests. Currently there's only one version, which will be used as the default version for all 8.x versions of Elasticsearch, even if new versions of ES|QL versions are added before Elasticsearch 9.0 is released.

If new ES|QL versions are introduced before the Elasticsearch 9.0 release, users can opt-in for another ES|QL version by passing/setting the version explicitly or by changing the global default using EsqlVersion.setDefault().