File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,11 +123,11 @@ impl Serialize for BulkHeader {
123
123
/// .pipeline("process_tweet")
124
124
/// .into()
125
125
/// );
126
- /// ops.push(BulkOperation::create("2", json!({
126
+ /// ops.push(BulkOperation::create(json!({
127
127
/// "user": "forloop",
128
128
/// "post_date": "2020-01-08T00:00:00Z",
129
129
/// "message": "Indexing with the rust client, yeah!"
130
- /// }))
130
+ /// })).id("2")
131
131
/// .pipeline("process_tweet")
132
132
/// .into()
133
133
/// );
@@ -605,7 +605,7 @@ impl<B> From<BulkUpdateOperation<B>> for BulkOperation<B> {
605
605
/// .index("index_doc")
606
606
/// .routing("routing")
607
607
/// )?;
608
- /// ops.push(BulkOperation::create("2", CreateDoc { bar: "create" }))?;
608
+ /// ops.push(BulkOperation::create(CreateDoc { bar: "create" }).id("2" ))?;
609
609
/// ops.push(BulkOperation::update("3", UpdateDoc { baz: "update" }))?;
610
610
/// ops.push(BulkOperation::<()>::delete("4"))?;
611
611
///
You can’t perform that action at this time.
0 commit comments