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 boosted(self, weight: f32) -> Self
pub fn boosted(self, weight: f32) -> Self
Weight this field for multi_match (field^weight). Has no effect on
this handle’s own matches / match_phrase clauses, which carry their
own boost.
Sourcepub fn matches(&self, value: impl Into<String>) -> MatchQuery<S>
pub fn matches(&self, value: impl Into<String>) -> MatchQuery<S>
Analyzed match.
Sourcepub fn match_phrase(&self, value: impl Into<String>) -> MatchQuery<S>
pub fn match_phrase(&self, value: impl Into<String>) -> MatchQuery<S>
Analyzed phrase match (terms in order).
Sourcepub fn match_phrase_prefix(&self, value: impl Into<String>) -> MatchQuery<S>
pub fn match_phrase_prefix(&self, value: impl Into<String>) -> MatchQuery<S>
Analyzed phrase-prefix match (search-as-you-type).
Sourcepub fn match_bool_prefix(&self, value: impl Into<String>) -> MatchQuery<S>
pub fn match_bool_prefix(&self, value: impl Into<String>) -> MatchQuery<S>
Bool-prefix match — every term a term except the last, which is a
prefix (the other half of search-as-you-type).
Sourcepub fn matches_fuzzy(&self, value: impl Into<String>) -> MatchQuery<S>
pub fn matches_fuzzy(&self, value: impl Into<String>) -> MatchQuery<S>
Analyzed match tolerant of typos — sugar for matches(v).fuzziness("AUTO").
Sourcepub fn keyword(&self) -> Keyword<S>
pub fn keyword(&self) -> Keyword<S>
The exact .keyword subfield flusso auto-creates on a text field —
for exact eq / in_, wildcard, prefix, and exact sort. (A wildcard
belongs here, not on the analyzed handle, which matches tokens not the
whole value.) Available only when the sink’s auto_subfields is on (the
default) and the field defines no custom fields.
Sourcepub fn keyword_lowercase(&self) -> Keyword<S>
pub fn keyword_lowercase(&self) -> Keyword<S>
The case/accent-insensitive .keyword_lowercase subfield — for
case-insensitive exact match and sort. Available only when the sink’s
auto_subfields is on (the default).