elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
695 stars 71 forks source link

Make _id optional on Bulk index operaton #114

Closed russcam closed 4 years ago

russcam commented 4 years ago

This commit fixes a bug where the _id of a bulk index operation should be optional, allowing it to be omitted and have Elasticsearch generate a value.

Expose an .id() function to be able to set a value