pub struct DocumentTextSource { /* private fields */ }Expand description
The text of the indexed fields of a document store’s documents, read a page at a time in identity order. A document holding no text in those fields is not read.
Implementations§
Source§impl DocumentTextSource
impl DocumentTextSource
Sourcepub fn new(
store: Arc<dyn DocumentStore>,
fields: Vec<FieldName>,
cancellation: Option<CancellationToken>,
) -> Self
pub fn new( store: Arc<dyn DocumentStore>, fields: Vec<FieldName>, cancellation: Option<CancellationToken>, ) -> Self
The text of fields in the documents of store, which should be an immutable view of them, as a snapshot is.
Trait Implementations§
Source§impl TextIndexSource for DocumentTextSource
impl TextIndexSource for DocumentTextSource
Source§fn next_document(
&mut self,
) -> StorageBackendResult<Option<(DocId, BTreeMap<FieldName, String>)>>
fn next_document( &mut self, ) -> StorageBackendResult<Option<(DocId, BTreeMap<FieldName, String>)>>
The next document, or
None after the last.Auto Trait Implementations§
impl !RefUnwindSafe for DocumentTextSource
impl !UnwindSafe for DocumentTextSource
impl Freeze for DocumentTextSource
impl Send for DocumentTextSource
impl Sync for DocumentTextSource
impl Unpin for DocumentTextSource
impl UnsafeUnpin for DocumentTextSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more