mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-05-14 08:14:05 +02:00
fix code style
This commit is contained in:
parent
e4733dcd42
commit
326a728434
@ -1,8 +1,8 @@
|
|||||||
use std::collections::VecDeque;
|
|
||||||
use heed::types::{Bytes, Unit};
|
use heed::types::{Bytes, Unit};
|
||||||
use heed::{RoPrefix, RoTxn};
|
use heed::{RoPrefix, RoTxn};
|
||||||
use roaring::RoaringBitmap;
|
use roaring::RoaringBitmap;
|
||||||
use rstar::RTree;
|
use rstar::RTree;
|
||||||
|
use std::collections::VecDeque;
|
||||||
|
|
||||||
use super::facet_string_values;
|
use super::facet_string_values;
|
||||||
use super::ranking_rules::{RankingRule, RankingRuleOutput, RankingRuleQueryTrait};
|
use super::ranking_rules::{RankingRule, RankingRuleOutput, RankingRuleQueryTrait};
|
||||||
@ -238,7 +238,7 @@ impl<'ctx, Q: RankingRuleQueryTrait> RankingRule<'ctx, Q> for GeoSort<Q> {
|
|||||||
fn next_bucket(
|
fn next_bucket(
|
||||||
&mut self,
|
&mut self,
|
||||||
ctx: &mut SearchContext<'ctx>,
|
ctx: &mut SearchContext<'ctx>,
|
||||||
logger: &mut dyn SearchLogger<Q>,
|
_logger: &mut dyn SearchLogger<Q>,
|
||||||
universe: &RoaringBitmap,
|
universe: &RoaringBitmap,
|
||||||
) -> Result<Option<RankingRuleOutput<Q>>> {
|
) -> Result<Option<RankingRuleOutput<Q>>> {
|
||||||
let query = self.query.as_ref().unwrap().clone();
|
let query = self.query.as_ref().unwrap().clone();
|
||||||
@ -299,13 +299,13 @@ impl<'ctx, Q: RankingRuleQueryTrait> RankingRule<'ctx, Q> for GeoSort<Q> {
|
|||||||
// same distance, point belongs to current bucket
|
// same distance, point belongs to current bucket
|
||||||
current_bucket.push(id);
|
current_bucket.push(id);
|
||||||
// remove from cadidates to prevent it from being added to the cache again
|
// remove from cadidates to prevent it from being added to the cache again
|
||||||
geo_candidates.remove(id);
|
geo_candidates.remove(id);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// first doc in current bucket
|
// first doc in current bucket
|
||||||
current_distance = Some((point, distance));
|
current_distance = Some((point, distance));
|
||||||
current_bucket.push(id);
|
current_bucket.push(id);
|
||||||
geo_candidates.remove(id);
|
geo_candidates.remove(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user