Add a simple test to check that attributes are ranking correctly

This commit is contained in:
Kerollmops
2023-04-12 18:17:28 +02:00
committed by Loïc Lecrenier
parent 30f7bd03f6
commit d9cebff61c
3 changed files with 60 additions and 1 deletions

View File

@ -25,7 +25,7 @@ impl RankingRuleGraphTrait for AttributeGraph {
universe: &RoaringBitmap,
) -> Result<ComputedCondition> {
let AttributeCondition { term, .. } = condition;
// maybe compute_query_term_subset_docids should accept a universe as argument
// maybe compute_query_term_subset_docids_within_field_id should accept a universe as argument
let mut docids = compute_query_term_subset_docids_within_field_id(
ctx,
&term.term_subset,