Struct tantivy::query::TermQuery [] [src]

pub struct TermQuery { /* fields omitted */ }

A Term query matches all of the documents containing a specific term.

The score associated is defined as idf * sqrt(term_freq / field norm) in which :

Methods

impl TermQuery
[src]

[src]

Creates a new term query.

[src]

Returns a weight object.

While .weight(...) returns a boxed trait object, this method return a specific implementation. This is useful for optimization purpose.

Trait Implementations

impl Debug for TermQuery
[src]

[src]

Formats the value using the given formatter. Read more

impl Query for TermQuery
[src]

[src]

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

[src]

Create the weight associated to a query. Read more

[src]

Search works as follows : Read more