From 421df6460264e6a2547afeeadb3630ae75f9ad63 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Thu, 15 Jun 2023 17:36:20 +0200 Subject: [PATCH] RankingRuleOutput now contains a Score --- milli/src/search/new/ranking_rules.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/milli/src/search/new/ranking_rules.rs b/milli/src/search/new/ranking_rules.rs index a771d3768..f54a1b8db 100644 --- a/milli/src/search/new/ranking_rules.rs +++ b/milli/src/search/new/ranking_rules.rs @@ -2,6 +2,7 @@ use roaring::RoaringBitmap; use super::logger::SearchLogger; use super::{QueryGraph, SearchContext}; +use crate::score_details::ScoreDetails; use crate::Result; /// An internal trait implemented by only [`PlaceholderQuery`] and [`QueryGraph`] @@ -66,4 +67,6 @@ pub struct RankingRuleOutput { pub query: Q, /// The allowed candidates for the child ranking rule pub candidates: RoaringBitmap, + /// The score for the candidates of the current bucket + pub score: ScoreDetails, }