@@ -41,10 +41,11 @@ pub enum Bucketing {
|
||||
BucketSize(u64),
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum TextMatchType {
|
||||
MaxScore,
|
||||
#[default]
|
||||
MaxWeight,
|
||||
SumScore,
|
||||
}
|
||||
@@ -59,12 +60,6 @@ impl TextMatchType {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for TextMatchType {
|
||||
fn default() -> Self {
|
||||
Self::MaxWeight
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Bucketing {
|
||||
fn default() -> Self {
|
||||
Self::Buckets(5)
|
||||
|
||||
@@ -547,8 +547,8 @@ async fn index_versions(
|
||||
}
|
||||
|
||||
let all_version_ids = versions
|
||||
.iter()
|
||||
.flat_map(|(_, version_ids)| version_ids.iter())
|
||||
.values()
|
||||
.flat_map(|version_ids| version_ids.iter())
|
||||
.map(|(version_id, _)| version_id.0)
|
||||
.collect::<Vec<i64>>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user