Removed println!

This commit is contained in:
Paul Masurel
2016-02-18 22:11:56 +09:00
parent b78e5320c3
commit 5d3b00a7b7
2 changed files with 0 additions and 5 deletions

View File

@@ -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,

View File

@@ -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;
}