seznam / elasticlient

C++ Elasticsearch client library
https://seznam.github.io/elasticlient/
MIT License
133 stars 67 forks source link

allow perform bulk without id #4

Closed WLBF closed 6 years ago

WLBF commented 6 years ago

As I know, Elasticsearch support bulk index without specifying the _id. However empty _id field in action metadata json is not allowed. e.g.

{ "index": { "_type": "type1", "_id": "" }} // fail
{ ... }
{ "index": { "_type": "type1" }} // ok
{ ... }
johniez commented 6 years ago

Hi. What do you think about createControl() overload without the id argument?