From e44d498c94bde5e22c091774a52643732577846e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Sun, 19 Jan 2020 11:07:32 +0100 Subject: [PATCH] Display more debug info for prefix tolerant fetches --- meilisearch-core/src/query_tree.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meilisearch-core/src/query_tree.rs b/meilisearch-core/src/query_tree.rs index 1a766d7f7..2694e47ac 100644 --- a/meilisearch-core/src/query_tree.rs +++ b/meilisearch-core/src/query_tree.rs @@ -413,7 +413,8 @@ pub fn traverse_query_tree<'o, 'txn>( let before = Instant::now(); let docids = sdset::duo::Union::new(prefix_docids, exact_docids).into_set_buf(); - println!("{:2$}prefix docids construction took {:.02?}", "", before.elapsed(), depth * 2); + println!("{:4$}prefix docids ({} and {}) construction took {:.02?}", + "", prefix_docids.len(), exact_docids.len(), before.elapsed(), depth * 2); Cow::Owned(docids)