mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Start with a filterBoosting ranking rule when boostingFilter is present
This commit is contained in:
parent
f2041fd78c
commit
b43edabbcd
13 changed files with 80 additions and 109 deletions
|
@ -147,7 +147,7 @@ pub fn expected_order(
|
|||
new_groups
|
||||
.extend(group.linear_group_by_key(|d| d.asc_desc_rank).map(Vec::from));
|
||||
}
|
||||
RankingRule::Boost(filter) => {
|
||||
RankingRule::FilterBoosting(filter) => {
|
||||
// move the matching documents first, then the ones that don't match
|
||||
group.sort_by_key(|d| if execute_filter(filter, d).is_some() { 0 } else { 1 });
|
||||
new_groups.extend(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue