diff --git a/src/index/segment_reader.rs b/src/index/segment_reader.rs index 186d01358..c86ee5906 100644 --- a/src/index/segment_reader.rs +++ b/src/index/segment_reader.rs @@ -406,7 +406,7 @@ impl SegmentReader { } /// Returns an iterator that will iterate over the alive document ids - pub fn doc_ids_alive(&self) -> Box + '_> { + pub fn doc_ids_alive(&self) -> Box + Send + '_> { if let Some(alive_bitset) = &self.alive_bitset_opt { Box::new(alive_bitset.iter_alive()) } else { diff --git a/src/store/reader.rs b/src/store/reader.rs index 16125a147..b7f243003 100644 --- a/src/store/reader.rs +++ b/src/store/reader.rs @@ -14,7 +14,7 @@ use super::Decompressor; use crate::directory::FileSlice; use crate::error::DataCorruption; use crate::fastfield::AliveBitSet; -use crate::schema::document::{BinaryDocumentDeserializer, Document, DocumentDeserialize}; +use crate::schema::document::{BinaryDocumentDeserializer, DocumentDeserialize}; use crate::space_usage::StoreSpaceUsage; use crate::store::index::Checkpoint; use crate::DocId; @@ -235,7 +235,7 @@ impl StoreReader { /// Iterator over all Documents in their order as they are stored in the doc store. /// Use this, if you want to extract all Documents from the doc store. /// The `alive_bitset` has to be forwarded from the `SegmentReader` or the results may be wrong. - pub fn iter<'a: 'b, 'b, D: Document + DocumentDeserialize>( + pub fn iter<'a: 'b, 'b, D: DocumentDeserialize>( &'b self, alive_bitset: Option<&'a AliveBitSet>, ) -> impl Iterator> + 'b {