elipdotter::index

Struct SimpleOccurences

source
pub struct SimpleOccurences<'a> { /* private fields */ }

Implementations§

source§

impl<'a> SimpleOccurences<'a>

Once this is used, call Self::missing and MissingOccurrences::apply to remove the missing entries found during the search.

§Panics

Using the OccurenceProvider::occurrences_of_word may panic, if not all documents returned from Provider::documents_with_word. If a document doesn’t exist, still Self::add_document, but with an empty String.

source

pub fn new(index: &'a Simple, word_proximates: &'a ProximateMap<'a>) -> Self