Loading
Aerospike Connect for Elasticsearch compatibility with Elasticsearch server
Elasticsearch server 7.11.x or later
The connector works with Elasticsearch server 7.11.x or later.
Elasticsearch server prior to 7.11.x
For the older version of Elasticsearch server, configure the Default Headers Section of es-client
. Configure this when the Elasticsearch server version is earlier than 7.11.x and you see an exception from the Elasticsearch server similar to
{"error":"Content-Type header [application/vnd.elasticsearch+json; compatible-with=8] is not supported","status":406}
in your logs. To overcome this error, override the Content-type
header in this section as exampled below:
Example
...
es-client:
...
default-headers:
Content-type: application/json
...
...