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]

[src]

Formats the value using the given formatter. Read more

impl Query for PhraseQuery
[src]

[src]

Used to make it possible to cast Box into a specific type. This is mostly useful for unit tests.

[src]

Create the weight associated to a query.

See Weight.

[src]

Search works as follows : Read more

impl From<Vec<Term>> for PhraseQuery
[src]

[src]

Performs the conversion.