mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-05-31 07:30:39 +00:00
rem broken seg
brotli by default
This commit is contained in:
@@ -73,7 +73,7 @@ debug-assertions = true
|
||||
overflow-checks = true
|
||||
|
||||
[features]
|
||||
default = ["mmap"]
|
||||
default = ["mmap", "brotli"]
|
||||
mmap = ["fs2", "tempfile", "memmap"]
|
||||
brotli-compression = ["brotli"]
|
||||
lz4-compression = ["lz4"]
|
||||
|
||||
Binary file not shown.
@@ -53,6 +53,7 @@ impl StoreReader {
|
||||
pub fn documents(&self) -> Vec<Document> {
|
||||
let mut documents = Vec::new();
|
||||
for checkpoint in self.skip_index.checkpoints() {
|
||||
println!("{:?}", checkpoint);
|
||||
let block = self.read_block(&checkpoint).unwrap();
|
||||
let mut cursor = &block[..];
|
||||
while cursor.len() > 0 {
|
||||
@@ -119,7 +120,6 @@ impl StoreReader {
|
||||
let doc_length = VInt::deserialize(&mut cursor)?.val() as usize;
|
||||
cursor = &cursor[doc_length..];
|
||||
}
|
||||
|
||||
let doc_length = VInt::deserialize(&mut cursor)?.val() as usize;
|
||||
cursor = &cursor[..doc_length];
|
||||
Ok(Document::deserialize(&mut cursor)?)
|
||||
|
||||
Reference in New Issue
Block a user