Take into account PR messages

This commit is contained in:
ManyTheFish 2025-03-10 13:46:33 +01:00
parent ed1dcbe0f7
commit 689e69d6d2
5 changed files with 18 additions and 24 deletions

View file

@ -92,10 +92,7 @@ impl RankingRuleGraphTrait for FidGraph {
}
// always lookup the max_fid if we don't already and add an artificial condition for max scoring
let max_weight = ctx
.index
.max_searchable_attribute_weight(ctx.txn)?
.or_else(|| weights_map.max_weight());
let max_weight = ctx.index.max_searchable_attribute_weight(ctx.txn)?;
if let Some(max_weight) = max_weight {
if current_max_weight < max_weight {