Skip to content

Commit

Permalink
Explain mixed versions of HLRC and Java API client (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez authored Apr 29, 2022
1 parent 8b6b6b0 commit cae355e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/getting-started/migrate-hlrc.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<installation>>

[discrete]
==== Using the same http client with the HLRC and the Java API Client

Expand Down

0 comments on commit cae355e

Please sign in to comment.