Struct rs_es::operations::bulk::Action
[−]
[src]
pub struct Action { // some fields omitted }
A bulk operation consists of one or more Action
s.
Methods
impl Action
fn index<E: ToJson>(document: E) -> Action
An index action.
Takes the document to be indexed, other parameters can be set as
optional on the Action
struct returned.
Example
use rs_es::operations::bulk::Action; let delete_action = Action::delete("doc_id");
fn create<E: ToJson>(document: E) -> Action
Create action