mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
Fix typo initial candiddates computation
This commit is contained in:
parent
1f1beae077
commit
80d34a4169
@ -141,7 +141,12 @@ impl<'t> Criterion for Typo<'t> {
|
|||||||
filtered_candidates,
|
filtered_candidates,
|
||||||
initial_candidates,
|
initial_candidates,
|
||||||
}) => {
|
}) => {
|
||||||
self.initial_candidates = initial_candidates;
|
self.initial_candidates =
|
||||||
|
match (self.initial_candidates.take(), initial_candidates) {
|
||||||
|
(Some(self_bc), Some(parent_bc)) => Some(self_bc | parent_bc),
|
||||||
|
(self_bc, parent_bc) => self_bc.or(parent_bc),
|
||||||
|
};
|
||||||
|
|
||||||
let candidates = match candidates.or(filtered_candidates) {
|
let candidates = match candidates.or(filtered_candidates) {
|
||||||
Some(candidates) => {
|
Some(candidates) => {
|
||||||
Candidates::Allowed(candidates - params.excluded_candidates)
|
Candidates::Allowed(candidates - params.excluded_candidates)
|
||||||
|
Loading…
Reference in New Issue
Block a user