mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
Minor cleanup
This commit is contained in:
parent
30fb1153cc
commit
11f814821d
@ -91,13 +91,15 @@ impl RankingRuleGraphTrait for PositionGraph {
|
||||
};
|
||||
positions_for_costs.entry(cost).or_default().push(position);
|
||||
}
|
||||
println!(
|
||||
"positions for cost {} : {positions_for_costs:?}",
|
||||
term.term_subset.description(ctx)
|
||||
);
|
||||
let mut edges = vec![];
|
||||
|
||||
for (cost, positions) in positions_for_costs {
|
||||
// TODO: We can improve performances and relevancy by storing
|
||||
// the term subsets associated to each position fetched.
|
||||
//
|
||||
// TODO: group conditions by their cost
|
||||
edges.push((
|
||||
cost,
|
||||
conditions_interner.insert(PositionCondition {
|
||||
|
@ -47,7 +47,7 @@
|
||||
"word_rank": 0,
|
||||
"typo_rank": 1,
|
||||
"proximity_rank": 10,
|
||||
"attribute_rank": 111,
|
||||
"attribute_rank": 108,
|
||||
"exact_rank": 6,
|
||||
"asc_desc_rank": 2,
|
||||
"sort_by_rank": 0,
|
||||
|
Loading…
Reference in New Issue
Block a user