diff --git a/quickwit/quickwit-search/src/root.rs b/quickwit/quickwit-search/src/root.rs index 53d9f133b5f..2ed4d000329 100644 --- a/quickwit/quickwit-search/src/root.rs +++ b/quickwit/quickwit-search/src/root.rs @@ -1190,12 +1190,12 @@ pub async fn search_plan( + warmup_info .terms_grouped_by_field .values() - .map(|terms| terms.len()) + .map(|terms: &HashMap| terms.len()) .sum::(); let position_query_count = warmup_info .terms_grouped_by_field .values() - .map(|terms| { + .map(|terms: &HashMap| { terms .values() .filter(|load_position| **load_position) diff --git a/quickwit/quickwit-search/src/search_response_rest.rs b/quickwit/quickwit-search/src/search_response_rest.rs index 0b24b253887..e34895ac659 100644 --- a/quickwit/quickwit-search/src/search_response_rest.rs +++ b/quickwit/quickwit-search/src/search_response_rest.rs @@ -119,7 +119,9 @@ pub struct SearchPlanResponseRest { pub storage_requests: StorageRequestCount, } -/// Number of expected storage requests, per request kind +/// Number of expected storage requests, per request kind. +/// +/// These figures do not take in account whether the data is already cached or not. #[derive(Serialize, Deserialize, PartialEq, Debug, Default)] pub struct StorageRequestCount { /// Number of split footer downloaded, always 1