seznam / elasticlient

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

Changed document identifier to be optional #20

Closed ladislavmacoun closed 3 years ago

ladislavmacoun commented 3 years ago

While creating a document with an explicit identifier, Elasticsearch needs to perform a check whether the same id already exists within the same shard.

This patch makes setting document id optional. And using auto-generated ids by leaving _id parameter, which makes indexing faster.

Signed-off-by: Ladislav Macoun ladislavmacoun@gmail.com