RankingRuleOutput now contains a Score

This commit is contained in:
Louis Dureuil 2023-06-15 17:36:20 +02:00
parent c0fca6f884
commit 421df64602
No known key found for this signature in database

View File

@ -2,6 +2,7 @@ use roaring::RoaringBitmap;
use super::logger::SearchLogger; use super::logger::SearchLogger;
use super::{QueryGraph, SearchContext}; use super::{QueryGraph, SearchContext};
use crate::score_details::ScoreDetails;
use crate::Result; use crate::Result;
/// An internal trait implemented by only [`PlaceholderQuery`] and [`QueryGraph`] /// An internal trait implemented by only [`PlaceholderQuery`] and [`QueryGraph`]
@ -66,4 +67,6 @@ pub struct RankingRuleOutput<Q> {
pub query: Q, pub query: Q,
/// The allowed candidates for the child ranking rule /// The allowed candidates for the child ranking rule
pub candidates: RoaringBitmap, pub candidates: RoaringBitmap,
/// The score for the candidates of the current bucket
pub score: ScoreDetails,
} }