pub struct TextIndexParamsBuilder { /* private fields */ }Implementations§
Source§impl TextIndexParamsBuilder
impl TextIndexParamsBuilder
pub fn new(tokenizer: TokenizerType) -> Self
Sourcepub fn min_token_len(self, value: u64) -> Self
pub fn min_token_len(self, value: u64) -> Self
Minimal token length
Sourcepub fn max_token_len(self, value: u64) -> Self
pub fn max_token_len(self, value: u64) -> Self
Maximal token length
Sourcepub fn stopwords_language(self, language: String) -> Self
pub fn stopwords_language(self, language: String) -> Self
Stopwords for a single language for the text index
Sourcepub fn stopwords(self, stopwords_set: StopwordsSet) -> Self
pub fn stopwords(self, stopwords_set: StopwordsSet) -> Self
Stopwords for the text index
Sourcepub fn phrase_matching(self, phrase_matching: bool) -> Self
pub fn phrase_matching(self, phrase_matching: bool) -> Self
If true - support phrase matching. Default is false.
Sourcepub fn snowball_stemmer(self, language: String) -> Self
pub fn snowball_stemmer(self, language: String) -> Self
Set snowball stemmer with the provided language
Sourcepub fn stemmer(self, stemming_params: StemmingParams) -> Self
pub fn stemmer(self, stemming_params: StemmingParams) -> Self
Set an algorithm for stemming.
Sourcepub fn ascii_folding(self, value: bool) -> Self
pub fn ascii_folding(self, value: bool) -> Self
If true, normalize tokens by folding accented characters to ASCII (e.g., “ação” -> “acao”). Default: false.
Source§impl TextIndexParamsBuilder
impl TextIndexParamsBuilder
Sourcepub fn build(self) -> TextIndexParams
pub fn build(self) -> TextIndexParams
Builds the desired type. Can often be omitted.
Trait Implementations§
Source§impl Clone for TextIndexParamsBuilder
impl Clone for TextIndexParamsBuilder
Source§fn clone(&self) -> TextIndexParamsBuilder
fn clone(&self) -> TextIndexParamsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<TextIndexParamsBuilder> for IndexParams
impl From<TextIndexParamsBuilder> for IndexParams
Source§fn from(value: TextIndexParamsBuilder) -> Self
fn from(value: TextIndexParamsBuilder) -> Self
Converts to this type from the input type.
Source§impl From<TextIndexParamsBuilder> for TextIndexParams
impl From<TextIndexParamsBuilder> for TextIndexParams
Source§fn from(value: TextIndexParamsBuilder) -> Self
fn from(value: TextIndexParamsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TextIndexParamsBuilder
impl RefUnwindSafe for TextIndexParamsBuilder
impl Send for TextIndexParamsBuilder
impl Sync for TextIndexParamsBuilder
impl Unpin for TextIndexParamsBuilder
impl UnwindSafe for TextIndexParamsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request