elastic / elastic/elasticsearch-java

Bulk API should support documents encoded in JSON as well as encoded in SMILE

Open
#124 0 comments 1 reaction 0 assignees View on GitHub
Category: Enhancement
Dominant language
Java
Stars
524
Forks
300
Avg merge
1d 11h
Merged PRs (30d)
16

Description

Currently the High Level Rest Client supports bulks API to send documents encoded either in JSON or SMILE as stated in the [docs](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-document-bulk.html):

```
The Bulk API supports only documents encoded in JSON or SMILE. Providing documents in any other format will result in an error.
```

I think this client should support it as well.

It is important to note that this is not only a wire concern as it has implication in how Elasticsearch will store the documents. The format the documents are sent determines how they are stored in `_source` which it has implication in index size and performance when fetching fields.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.