feat: Log the total number of documents to rank

This commit is contained in:
Clément Renault 2019-01-06 15:01:44 +01:00
parent 3418adb06a
commit 7f35b971f0
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE

View File

@ -8,6 +8,7 @@ use group_by::GroupByMut;
use hashbrown::HashMap; use hashbrown::HashMap;
use fst::Streamer; use fst::Streamer;
use rocksdb::DB; use rocksdb::DB;
use log::info;
use crate::automaton::{self, DfaExt, AutomatonExt}; use crate::automaton::{self, DfaExt, AutomatonExt};
use crate::rank::distinct_map::{DistinctMap, BufferedDistinctMap}; use crate::rank::distinct_map::{DistinctMap, BufferedDistinctMap};
@ -116,6 +117,8 @@ where D: Deref<Target=DB>,
} }
} }
info!("{} documents to classify", matches.len());
matches.into_iter().map(|(i, m)| Document::from_unsorted_matches(i, m)).collect() matches.into_iter().map(|(i, m)| Document::from_unsorted_matches(i, m)).collect()
} }
} }