Struct tantivy::Searcher [] [src]

pub struct Searcher {
    // some fields omitted
}

Methods

impl Searcher
[src]

fn doc(&self, doc_address: &DocAddress) -> Result<Document>

fn num_docs(&self) -> DocId

fn doc_freq(&self, term: &Term) -> u32

fn segments(&self) -> &Vec<SegmentReader>

fn for_index(index: Index) -> Result<Searcher>

fn search<Q: Query, C: Collector>(&self, query: &Q, collector: &mut C) -> Result<TimerTree>

Trait Implementations

impl Debug for Searcher
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.