Struct elipdotter::query::Documents
source · pub struct Documents<'a, 'b, P: Provider<'a>> { /* private fields */ }
Expand description
An iterator of documents which matches a Query
.
Implementations§
source§impl<'a, 'b, P: Provider<'a>> Documents<'a, 'b, P>
impl<'a, 'b, P: Provider<'a>> Documents<'a, 'b, P>
sourcepub fn iter(&'a self) -> Result<impl Iterator<Item = Id> + 'a, IterError>
pub fn iter(&'a self) -> Result<impl Iterator<Item = Id> + 'a, IterError>
Errors
If a Part::Not
isn’t associated with a Part::And
, IterError::StrayNot
is
returned.
This is due to a limitation of the index architecture used by this library, and almost all other search engines.
sourcepub fn take_proximate_map(&mut self) -> ProximateMap<'b>
pub fn take_proximate_map(&mut self) -> ProximateMap<'b>
The list of proximate words.
This is populated on creation and used in Self::iter
.
Using Self::iter
after calling this will most likely result in a panic.