From b79b03d4e2b8cb3261bd2b5add1c75870c92756c Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Thu, 11 Jan 2024 13:14:51 +0100 Subject: [PATCH] Fix proximity precision telemetry --- meilisearch/src/routes/indexes/settings.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meilisearch/src/routes/indexes/settings.rs b/meilisearch/src/routes/indexes/settings.rs index 3ab6afe07..decc4ffc9 100644 --- a/meilisearch/src/routes/indexes/settings.rs +++ b/meilisearch/src/routes/indexes/settings.rs @@ -458,7 +458,7 @@ make_setting_route!( json!({ "proximity_precision": { "set": precision.is_some(), - "value": precision, + "value": precision.unwrap_or_default(), } }), Some(req), @@ -690,7 +690,8 @@ pub async fn update_all( "set": new_settings.distinct_attribute.as_ref().set().is_some() }, "proximity_precision": { - "set": new_settings.proximity_precision.as_ref().set().is_some() + "set": new_settings.proximity_precision.as_ref().set().is_some(), + "value": new_settings.proximity_precision.as_ref().set().copied().unwrap_or_default() }, "typo_tolerance": { "enabled": new_settings.typo_tolerance