From cae355e6ad1489603a6418e5091a68b386bce575 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Fri, 29 Apr 2022 18:06:37 +0200 Subject: [PATCH] Explain mixed versions of HLRC and Java API client (#260) --- docs/getting-started/migrate-hlrc.asciidoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/getting-started/migrate-hlrc.asciidoc b/docs/getting-started/migrate-hlrc.asciidoc index 7b3f75777..b6bc33cd5 100644 --- a/docs/getting-started/migrate-hlrc.asciidoc +++ b/docs/getting-started/migrate-hlrc.asciidoc @@ -19,6 +19,18 @@ additional headers that instruct {es} `8.x` to behave like a `7.x` server. The {java-client} doesn't need this setting as compatibility mode is always enabled. +You can use the HLRC version `7.x` with the {java-client} version `8.x`: + +["source","groovy",subs="attributes+"] +-------------------------------------------------- +dependencies { + implementation 'co.elastic.clients:elasticsearch-java:{version}' + implementation 'org.elasticsearch.client:elasticsearch-rest-high-level-client:7.17.3' + // other dependencies <1> +} +-------------------------------------------------- +<1> See <> + [discrete] ==== Using the same http client with the HLRC and the Java API Client