apply review comment

This commit is contained in:
Tamo 2024-07-17 16:13:40 +02:00
parent 2af9481804
commit 56b60ec7a0
2 changed files with 2 additions and 9 deletions

View File

@ -112,7 +112,6 @@ pub async fn multi_search_with_post(
)); ));
} }
let features = index_scheduler.features();
let index = index_scheduler let index = index_scheduler
.index(&index_uid) .index(&index_uid)
.map_err(|err| { .map_err(|err| {

View File

@ -473,14 +473,8 @@ pub fn perform_federated_search(
None => TimeBudget::default(), None => TimeBudget::default(),
}; };
let (mut search, _is_finite_pagination, _max_total_hits, _offset) = prepare_search( let (mut search, _is_finite_pagination, _max_total_hits, _offset) =
&index, prepare_search(&index, &rtxn, &query, &search_kind, time_budget, features)?;
&rtxn,
&query,
&search_kind,
time_budget,
index_scheduler.features(),
)?;
search.scoring_strategy(milli::score_details::ScoringStrategy::Detailed); search.scoring_strategy(milli::score_details::ScoringStrategy::Detailed);
search.offset(0); search.offset(0);