Struct tantivy::query::PhraseQuery
[−]
[src]
pub struct PhraseQuery { /* fields omitted */ }
PhraseQuery
matches a specific sequence of words.
For instance the phrase query for "part time"
will match
the sentence
Alan just got a part time job.
On the other hand it will not match the sentence.
This is my favorite part of the job.
Using a PhraseQuery
on a field requires positions
to be indexed for this field.
Trait Implementations
impl Debug for PhraseQuery
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Query for PhraseQuery
[src]
fn as_any(&self) -> &Any
[src]
Used to make it possible to cast Box
fn weight(&self, _searcher: &Searcher) -> Result<Box<Weight>>
[src]
Create the weight associated to a query.
See Weight
.
fn search(
&self,
searcher: &Searcher,
collector: &mut Collector
) -> Result<TimerTree>
[src]
&self,
searcher: &Searcher,
collector: &mut Collector
) -> Result<TimerTree>
Search works as follows : Read more
impl From<Vec<Term>> for PhraseQuery
[src]
fn from(phrase_terms: Vec<Term>) -> PhraseQuery
[src]
Performs the conversion.