Skip to content

Add API compatibility content-type support to HLRC #77859

@swallez

Description

@swallez

The High Level Rest Client should support the API compatibility content-type.

It should be opt-in, and enabled in two ways:

  • as a configuration on the client itself, e.g. client.setApiCompatibilityMode(true)
  • from an ELASTICSEARCH_APIVERSIONING environment variables as generally supported by Elasticsearch client libraries, which allows enabling compatibility mode without rebuilding applications.

Looking at RequestContervers.REQUEST_BODY_CONTENT_TYPE it seems that HLRC only supports JSON encoding and not CBOR/SMILE/YAML, so we should only support the corresponding vendor media type application/vnd.elasticsearch+smile;compatible-with=7.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions