Skip to content

Commit 63cb343

Browse files
Explain mixed versions of HLRC and Java API client (#260) (#262)
Co-authored-by: Sylvain Wallez <[email protected]>
1 parent 3446073 commit 63cb343

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/getting-started/migrate-hlrc.asciidoc

+12
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ additional headers that instruct {es} `8.x` to behave like a `7.x` server.
1919
The {java-client} doesn't need this setting as compatibility mode is always
2020
enabled.
2121

22+
You can use the HLRC version `7.x` with the {java-client} version `8.x`:
23+
24+
["source","groovy",subs="attributes+"]
25+
--------------------------------------------------
26+
dependencies {
27+
implementation 'co.elastic.clients:elasticsearch-java:{version}'
28+
implementation 'org.elasticsearch.client:elasticsearch-rest-high-level-client:7.17.3'
29+
// other dependencies <1>
30+
}
31+
--------------------------------------------------
32+
<1> See <<installation>>
33+
2234
[discrete]
2335
==== Using the same http client with the HLRC and the Java API Client
2436

0 commit comments

Comments
 (0)