mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
rename the search_cutoff parameter to search_cutoff_ms
This commit is contained in:
parent
038c26c118
commit
6a0c399c2f
8 changed files with 39 additions and 38 deletions
|
@ -626,19 +626,19 @@ fn embedder_analytics(
|
|||
}
|
||||
|
||||
make_setting_route!(
|
||||
"/search-cutoff",
|
||||
"/search-cutoff-ms",
|
||||
put,
|
||||
u64,
|
||||
meilisearch_types::deserr::DeserrJsonError<
|
||||
meilisearch_types::error::deserr_codes::InvalidSettingsSearchCutoff,
|
||||
>,
|
||||
search_cutoff,
|
||||
"searchCutoff",
|
||||
search_cutoff_ms,
|
||||
"searchCutoffMs",
|
||||
analytics,
|
||||
|setting: &Option<u64>, req: &HttpRequest| {
|
||||
analytics.publish(
|
||||
"Search Cutoff Updated".to_string(),
|
||||
serde_json::json!({"search_cutoff": setting }),
|
||||
serde_json::json!({"search_cutoff_ms": setting }),
|
||||
Some(req),
|
||||
);
|
||||
}
|
||||
|
@ -675,7 +675,7 @@ generate_configure!(
|
|||
pagination,
|
||||
faceting,
|
||||
embedders,
|
||||
search_cutoff
|
||||
search_cutoff_ms
|
||||
);
|
||||
|
||||
pub async fn update_all(
|
||||
|
@ -787,7 +787,7 @@ pub async fn update_all(
|
|||
"total": new_settings.synonyms.as_ref().set().map(|synonyms| synonyms.len()),
|
||||
},
|
||||
"embedders": crate::routes::indexes::settings::embedder_analytics(new_settings.embedders.as_ref().set()),
|
||||
"search_cutoff": new_settings.search_cutoff.as_ref().set(),
|
||||
"search_cutoff_ms": new_settings.search_cutoff_ms.as_ref().set(),
|
||||
}),
|
||||
Some(&req),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue