# Aerospike connector 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](https://aerospike.com/docs/connectors/elasticsearch/configure/es-client#default-headers) 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

```plaintext
{"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

```yaml
...

es-client:

  ...

  default-headers:

    Content-type: application/json

  ...

...
```