mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Take into account PR messages
This commit is contained in:
parent
ed1dcbe0f7
commit
689e69d6d2
5 changed files with 18 additions and 24 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue