Struct tantivy::Searcher[][src]

pub struct Searcher { /* fields omitted */ }

Holds a list of SegmentReaders ready for search.

It guarantees that the Segment will not be removed before the destruction of the Searcher.

Methods

impl Searcher
[src]

Returns the Index associated to the Searcher

Fetches a document from tantivy's store given a DocAddress.

The searcher uses the segment ordinal to route the the request to the right Segment.

Access the schema associated to the index of this searcher.

Returns the overall number of documents in the index.

Return the overall number of documents containing the given term.

Important traits for &'a [u8]

Return the list of segment readers

Returns the segment_reader associated with the given segment_ordinal

Runs a query on the segment readers wrapped by the searcher

Return the field searcher associated to a Field.

Trait Implementations

impl Debug for Searcher
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Searcher

impl !Sync for Searcher