pub struct SimpleOccurences<'a> { /* private fields */ }Implementations§
source§impl<'a> SimpleOccurences<'a>
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.
sourcepub fn new(index: &'a Simple, word_proximates: &'a ProximateMap<'a>) -> Self
pub fn new(index: &'a Simple, word_proximates: &'a ProximateMap<'a>) -> Self
The proximity::ProximateMap can be acquired from
crate::query::Documents::take_proximate_map which is returned from crate::Query::documents.