pub struct Settings<'a, 't, 'i> { /* private fields */ }Implementations§
Source§impl<'a, 't, 'i> Settings<'a, 't, 'i>
impl<'a, 't, 'i> Settings<'a, 't, 'i>
pub fn new( wtxn: &'t mut RwTxn<'i>, index: &'i Index, indexer_config: &'a IndexerConfig, ) -> Settings<'a, 't, 'i>
pub fn reset_searchable_fields(&mut self)
pub fn set_searchable_fields(&mut self, names: Vec<String>)
pub fn reset_displayed_fields(&mut self)
pub fn set_displayed_fields(&mut self, names: Vec<String>)
pub fn reset_filterable_fields(&mut self)
pub fn set_filterable_fields(&mut self, rules: Vec<FilterableAttributesRule>)
pub fn set_sortable_fields(&mut self, names: HashSet<String>)
pub fn reset_sortable_fields(&mut self)
pub fn reset_criteria(&mut self)
pub fn set_criteria(&mut self, criteria: Vec<Criterion>)
pub fn reset_stop_words(&mut self)
pub fn set_stop_words(&mut self, stop_words: BTreeSet<String>)
pub fn reset_non_separator_tokens(&mut self)
pub fn set_non_separator_tokens( &mut self, non_separator_tokens: BTreeSet<String>, )
pub fn reset_separator_tokens(&mut self)
pub fn set_separator_tokens(&mut self, separator_tokens: BTreeSet<String>)
pub fn reset_dictionary(&mut self)
pub fn set_dictionary(&mut self, dictionary: BTreeSet<String>)
pub fn reset_distinct_field(&mut self)
pub fn set_distinct_field(&mut self, distinct_field: String)
pub fn reset_synonyms(&mut self)
pub fn set_synonyms(&mut self, synonyms: BTreeMap<String, Vec<String>>)
pub fn reset_primary_key(&mut self)
pub fn set_primary_key(&mut self, primary_key: String)
pub fn set_autorize_typos(&mut self, val: bool)
pub fn set_min_word_len_two_typos(&mut self, val: u8)
pub fn reset_min_word_len_two_typos(&mut self)
pub fn set_min_word_len_one_typo(&mut self, val: u8)
pub fn reset_min_word_len_one_typo(&mut self)
pub fn set_disable_on_numbers(&mut self, disable_on_numbers: bool)
pub fn reset_disable_on_numbers(&mut self)
pub fn set_exact_words(&mut self, words: BTreeSet<String>)
pub fn reset_exact_words(&mut self)
pub fn set_exact_attributes(&mut self, attrs: HashSet<String>)
pub fn reset_exact_attributes(&mut self)
pub fn set_max_values_per_facet(&mut self, value: usize)
pub fn reset_max_values_per_facet(&mut self)
pub fn set_sort_facet_values_by(&mut self, value: OrderByMap)
pub fn reset_sort_facet_values_by(&mut self)
pub fn set_pagination_max_total_hits(&mut self, value: usize)
pub fn reset_pagination_max_total_hits(&mut self)
pub fn set_proximity_precision(&mut self, value: ProximityPrecision)
pub fn reset_proximity_precision(&mut self)
pub fn set_embedder_settings( &mut self, value: BTreeMap<String, Setting<EmbeddingSettings>>, )
pub fn reset_embedder_settings(&mut self)
pub fn set_search_cutoff(&mut self, value: u64)
pub fn reset_search_cutoff(&mut self)
pub fn set_localized_attributes_rules( &mut self, value: Vec<LocalizedAttributesRule>, )
pub fn reset_localized_attributes_rules(&mut self)
pub fn set_prefix_search(&mut self, value: PrefixSearch)
pub fn reset_prefix_search(&mut self)
pub fn set_facet_search(&mut self, value: bool)
pub fn reset_facet_search(&mut self)
pub fn execute<FP, FA>( self, progress_callback: FP, should_abort: FA, ) -> Result<()>
Auto Trait Implementations§
impl<'a, 't, 'i> Freeze for Settings<'a, 't, 'i>
impl<'a, 't, 'i> !RefUnwindSafe for Settings<'a, 't, 'i>
impl<'a, 't, 'i> Send for Settings<'a, 't, 'i>
impl<'a, 't, 'i> !Sync for Settings<'a, 't, 'i>
impl<'a, 't, 'i> Unpin for Settings<'a, 't, 'i>
impl<'a, 't, 'i> !UnwindSafe for Settings<'a, 't, 'i>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more