pub struct Text<S = Root> { /* private fields */ }Expand description
An analyzed full-text field (text, identifier). No exact eq.
Implementations§
Source§impl<S> Text<S>
impl<S> Text<S>
pub fn at(path: impl Into<String>) -> Self
Sourcepub fn match_phrase(&self, value: impl Into<String>) -> Query<S>
pub fn match_phrase(&self, value: impl Into<String>) -> Query<S>
Analyzed phrase match (terms in order).
Sourcepub fn match_phrase_prefix(&self, value: impl Into<String>) -> Query<S>
pub fn match_phrase_prefix(&self, value: impl Into<String>) -> Query<S>
Analyzed phrase-prefix match (search-as-you-type).
Sourcepub fn matches_fuzzy(&self, value: impl Into<String>) -> Query<S>
pub fn matches_fuzzy(&self, value: impl Into<String>) -> Query<S>
Analyzed match tolerant of typos — a match with fuzziness: AUTO.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Text<S>
impl<S> RefUnwindSafe for Text<S>
impl<S> Send for Text<S>
impl<S> Sync for Text<S>
impl<S> Unpin for Text<S>
impl<S> UnsafeUnpin for Text<S>
impl<S> UnwindSafe for Text<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