pub struct FuzzyQuery<S = Root> { /* private fields */ }Expand description
A fuzzy clause, with fuzziness / prefix_length / max_expansions /
transpositions plus boost / name.
Implementations§
Source§impl<S> FuzzyQuery<S>
impl<S> FuzzyQuery<S>
Sourcepub fn fuzziness(self, fuzziness: impl Into<String>) -> Self
pub fn fuzziness(self, fuzziness: impl Into<String>) -> Self
Maximum edit distance — "AUTO" (the default) or an integer-as-string.
Sourcepub fn prefix_length(self, prefix_length: u32) -> Self
pub fn prefix_length(self, prefix_length: u32) -> Self
Leading characters that must match exactly.
Sourcepub fn max_expansions(self, max_expansions: u32) -> Self
pub fn max_expansions(self, max_expansions: u32) -> Self
Cap on the variations the term expands into.
Sourcepub fn transpositions(self, transpositions: bool) -> Self
pub fn transpositions(self, transpositions: bool) -> Self
Whether adjacent-character transpositions count as one edit.
Trait Implementations§
Source§impl<S> AsQuery<S> for FuzzyQuery<S>
impl<S> AsQuery<S> for FuzzyQuery<S>
Source§fn into_query(self) -> Option<Query<S>>
fn into_query(self) -> Option<Query<S>>
The clause this produces, or
None to contribute nothing.Source§fn and(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
fn and(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
self AND other. An absent side is the identity.Source§fn or(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
fn or(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
self OR other. An absent side is the identity.Source§impl<S: Clone> Clone for FuzzyQuery<S>
impl<S: Clone> Clone for FuzzyQuery<S>
Source§fn clone(&self) -> FuzzyQuery<S>
fn clone(&self) -> FuzzyQuery<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S> Freeze for FuzzyQuery<S>
impl<S> RefUnwindSafe for FuzzyQuery<S>
impl<S> Send for FuzzyQuery<S>
impl<S> Sync for FuzzyQuery<S>
impl<S> Unpin for FuzzyQuery<S>
impl<S> UnsafeUnpin for FuzzyQuery<S>
impl<S> UnwindSafe for FuzzyQuery<S>
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