Struct rs_es::operations::search::SearchQueryOperation [] [src]

pub struct SearchQueryOperation<'a, 'b> {
    // some fields omitted


impl<'a, 'b> SearchQueryOperation<'a, 'b>

Specify source filtering, by default full source will be returned in a hit

To switch-off source document in each hit: with_source(Source::Off). To include fields: with_source(Source::include(&["field_name"])), To exclude fields: with_source(Source::exclude(&["field_name"])), To include and exclude: with_source(Source::filter(&["include"], &["exclude"]))

Specify any aggregations

Specify fields to highlight

Performs the search with the specified query and options

Begins a scan with the specified query and options