pub struct StemmerFilter { /* private fields */ }Expand description
Reduces tokens to their word stems using the Snowball algorithm.
Stemming maps morphological variants to a common root (e.g., “running” → “run”, “cats” → “cat”). This improves recall at the cost of some precision.
Supports 17+ languages via the Snowball stemming algorithms.
See [[analyzers#Token Filters]] and Snowball.
Implementations§
Trait Implementations§
Source§impl TokenFilter for StemmerFilter
impl TokenFilter for StemmerFilter
Auto Trait Implementations§
impl Freeze for StemmerFilter
impl RefUnwindSafe for StemmerFilter
impl Send for StemmerFilter
impl Sync for StemmerFilter
impl Unpin for StemmerFilter
impl UnsafeUnpin for StemmerFilter
impl UnwindSafe for StemmerFilter
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> 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