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]

[src]

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.

[src]

Returns the overall number of documents in the index.

[src]

Return the overall number of documents containing the given term.

Important traits for &'a [u8]
[src]

Return the list of segment readers

[src]

Returns the segment_reader associated with the given segment_ordinal

[src]

Runs a query on the segment readers wrapped by the searcher

[src]

Return the field searcher associated to a Field.

Trait Implementations

impl From<Vec<SegmentReader>> for Searcher
[src]

[src]

Performs the conversion.

impl Debug for Searcher
[src]

[src]

Formats the value using the given formatter. Read more