mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Fix proximity precision telemetry
This commit is contained in:
parent
1f5e8fc072
commit
b79b03d4e2
1 changed files with 3 additions and 2 deletions
|
@ -458,7 +458,7 @@ make_setting_route!(
|
||||||
json!({
|
json!({
|
||||||
"proximity_precision": {
|
"proximity_precision": {
|
||||||
"set": precision.is_some(),
|
"set": precision.is_some(),
|
||||||
"value": precision,
|
"value": precision.unwrap_or_default(),
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
Some(req),
|
Some(req),
|
||||||
|
@ -690,7 +690,8 @@ pub async fn update_all(
|
||||||
"set": new_settings.distinct_attribute.as_ref().set().is_some()
|
"set": new_settings.distinct_attribute.as_ref().set().is_some()
|
||||||
},
|
},
|
||||||
"proximity_precision": {
|
"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": {
|
"typo_tolerance": {
|
||||||
"enabled": new_settings.typo_tolerance
|
"enabled": new_settings.typo_tolerance
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue