pub struct EdgeNGramTokenFilter {
pub min_gram: usize,
pub max_gram: usize,
pub preserve_original: bool,
}Expand description
Generates edge n-grams (prefix n-grams) from each token.
Matches ES edge_ngram token filter.
See [[analyzers#Token Filters]].
Fields§
§min_gram: usize§max_gram: usize§preserve_original: boolImplementations§
Trait Implementations§
Source§impl TokenFilter for EdgeNGramTokenFilter
impl TokenFilter for EdgeNGramTokenFilter
Auto Trait Implementations§
impl Freeze for EdgeNGramTokenFilter
impl RefUnwindSafe for EdgeNGramTokenFilter
impl Send for EdgeNGramTokenFilter
impl Sync for EdgeNGramTokenFilter
impl Unpin for EdgeNGramTokenFilter
impl UnsafeUnpin for EdgeNGramTokenFilter
impl UnwindSafe for EdgeNGramTokenFilter
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