Struct tantivy::termdict::TermDictionary[][src]

pub struct TermDictionary { /* fields omitted */ }

The term dictionary contains all of the terms in tantivy index in a sorted manner.

The Fst crate is used to associate terms to their respective TermOrdinal. The TermInfoStore then makes it possible to fetch the associated TermInfo.

Methods

impl TermDictionary
[src]

Opens a TermDictionary given a data source.

Creates an empty term dictionary which contains no terms.

Returns the number of terms in the dictionary. Term ordinals range from 0 to num_terms() - 1.

Returns the ordinal associated to a given term.

Returns the term associated to a given term ordinal.

Term ordinals are defined as the position of the term in the sorted list of terms.

Returns true iff the term has been found.

Regardless of whether the term is found or not, the buffer may be modified.

Returns the number of terms in the dictionary.

Lookups the value corresponding to the key.

Returns a range builder, to stream all of the terms within an interval.

A stream of all the sorted terms. See also .stream_field()

Returns a search builder, to stream all of the terms within the Automaton

Auto Trait Implementations