pub struct Match { /* private fields */ }Expand description
A match or match_phrase being assembled.
Implementations§
Source§impl Match
impl Match
Sourcepub fn and(self) -> Match
pub fn and(self) -> Match
Require every term, rather than any.
The default operator is or, which surprises nearly everyone the first
time: searching for quick brown fox returns documents containing only
fox, ranked lower but returned all the same. When a search box is
meant to narrow results as the user types, this is what makes it.
Sourcepub fn fuzzy(self) -> Match
pub fn fuzzy(self) -> Match
Tolerate typos, letting Elasticsearch choose the edit distance from the length of each term.
Sourcepub fn fuzziness(self, fuzziness: impl Into<String>) -> Match
pub fn fuzziness(self, fuzziness: impl Into<String>) -> Match
A specific edit distance: "1", "2", or "AUTO".
Sourcepub fn minimum_should_match(self, value: impl Into<Json>) -> Match
pub fn minimum_should_match(self, value: impl Into<Json>) -> Match
How many terms have to match: a count, or a percentage like "75%".
Trait Implementations§
impl StructuralPartialEq for Match
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnsafeUnpin for Match
impl UnwindSafe for Match
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