Struct rs_es::operations::search::highlight::Setting
[−]
[src]
pub struct Setting {
pub setting_type: Option<SettingTypes>,
pub index_options: Option<IndexOptions>,
pub term_vector: Option<TermVector>,
pub force_source: bool,
pub fragment_size: u32,
pub number_of_fragments: u32,
pub no_match_size: u32,
pub matched_fields: Option<Vec<String>>,
}Fields
setting_type: Option<SettingTypes>
index_options: Option<IndexOptions>
term_vector: Option<TermVector>
force_source: bool
fragment_size: u32
number_of_fragments: u32
no_match_size: u32
matched_fields: Option<Vec<String>>
Methods
impl Setting[src]
fn new() -> Setting
fn with_type(&mut self, setting_type: SettingTypes) -> &mut Setting
fn with_index_options(&mut self, index_options: IndexOptions) -> &mut Setting
fn with_term_vector(&mut self, term_vector: TermVector) -> &mut Setting
fn with_force_source(&mut self, force_source: bool) -> &mut Setting
fn with_fragment_size(&mut self, fragment_size: u32) -> &mut Setting
fn with_number_of_fragments(&mut self, number_of_fragments: u32) -> &mut Setting
fn with_no_match_size(&mut self, no_match_size: u32) -> &mut Setting
fn with_matched_fields(&mut self, matched_fields: Vec<String>) -> &mut Setting
Trait Implementations
impl Debug for Setting[src]
impl Clone for Setting[src]
fn clone(&self) -> Setting
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more