From 7f35b971f0803263d2061628b042f3821d2e3f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Sun, 6 Jan 2019 15:01:44 +0100 Subject: [PATCH] feat: Log the total number of documents to rank --- src/rank/query_builder.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rank/query_builder.rs b/src/rank/query_builder.rs index 3ec49d83d..eb8f21582 100644 --- a/src/rank/query_builder.rs +++ b/src/rank/query_builder.rs @@ -8,6 +8,7 @@ use group_by::GroupByMut; use hashbrown::HashMap; use fst::Streamer; use rocksdb::DB; +use log::info; use crate::automaton::{self, DfaExt, AutomatonExt}; use crate::rank::distinct_map::{DistinctMap, BufferedDistinctMap}; @@ -116,6 +117,8 @@ where D: Deref, } } + info!("{} documents to classify", matches.len()); + matches.into_iter().map(|(i, m)| Document::from_unsorted_matches(i, m)).collect() } }