mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-24 21:50:07 +01:00
Rename short name bc by ic for initial_candidates
This commit is contained in:
parent
80d34a4169
commit
2d8d0af1a6
@ -143,8 +143,8 @@ impl<'t> Criterion for Typo<'t> {
|
|||||||
}) => {
|
}) => {
|
||||||
self.initial_candidates =
|
self.initial_candidates =
|
||||||
match (self.initial_candidates.take(), initial_candidates) {
|
match (self.initial_candidates.take(), initial_candidates) {
|
||||||
(Some(self_bc), Some(parent_bc)) => Some(self_bc | parent_bc),
|
(Some(self_ic), Some(parent_ic)) => Some(self_ic | parent_ic),
|
||||||
(self_bc, parent_bc) => self_bc.or(parent_bc),
|
(self_ic, parent_ic) => self_ic.or(parent_ic),
|
||||||
};
|
};
|
||||||
|
|
||||||
let candidates = match candidates.or(filtered_candidates) {
|
let candidates = match candidates.or(filtered_candidates) {
|
||||||
|
@ -74,8 +74,8 @@ impl<'t> Criterion for Words<'t> {
|
|||||||
|
|
||||||
self.initial_candidates =
|
self.initial_candidates =
|
||||||
match (self.initial_candidates.take(), initial_candidates) {
|
match (self.initial_candidates.take(), initial_candidates) {
|
||||||
(Some(self_bc), Some(parent_bc)) => Some(self_bc | parent_bc),
|
(Some(self_ic), Some(parent_ic)) => Some(self_ic | parent_ic),
|
||||||
(self_bc, parent_bc) => self_bc.or(parent_bc),
|
(self_ic, parent_ic) => self_ic.or(parent_ic),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Some(CriterionResult {
|
Some(CriterionResult {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user