mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-05-18 17:20:41 +00:00
Removed println!
This commit is contained in:
@@ -37,7 +37,6 @@ impl SegmentPostings {
|
||||
pub fn from_data(data: &[u8]) -> SegmentPostings {
|
||||
let mut cursor = Cursor::new(data);
|
||||
let doc_freq = cursor.read_u32::<BigEndian>().unwrap() as usize;
|
||||
println!("doc_freq {}", doc_freq);
|
||||
let data_size = cursor.read_u32::<BigEndian>().unwrap() as usize;
|
||||
// TODO remove allocs
|
||||
let mut data = Vec::with_capacity(data_size);
|
||||
@@ -47,9 +46,6 @@ impl SegmentPostings {
|
||||
let mut doc_ids: Vec<u32> = (0..doc_freq as u32 ).collect();
|
||||
let decoder = Decoder::new();
|
||||
decoder.decode(&data, &mut doc_ids);
|
||||
for a in doc_ids.iter() {
|
||||
println!("uncompressed {}", a);
|
||||
}
|
||||
SegmentPostings {
|
||||
doc_ids: doc_ids,
|
||||
doc_id: 0,
|
||||
|
||||
@@ -115,7 +115,6 @@ impl SegmentWriter {
|
||||
let mut tokens = self.tokenizer.tokenize(&field_value.text);
|
||||
while tokens.read_one(&mut term_buffer) {
|
||||
let term = Term::from_field_text(&field_value.field, term_buffer.as_ref());
|
||||
println!("token {:?}", term);
|
||||
self.suscribe(doc_id, term);
|
||||
self.num_tokens += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user