Make the edit documents by function route experimental

This commit is contained in:
Clément Renault 2024-07-08 16:46:53 +02:00
parent e97600eead
commit 01144b2c74
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
4 changed files with 32 additions and 2 deletions

View file

@ -595,6 +595,11 @@ pub async fn edit_documents_by_function(
analytics: web::Data<dyn Analytics>,
) -> Result<HttpResponse, ResponseError> {
debug!(parameters = ?params, "Edit documents by function");
index_scheduler
.features()
.check_edit_documents_by_function("Using the documents edit route")?;
let index_uid = IndexUid::try_from(index_uid.into_inner())?;
let index_uid = index_uid.into_inner();
let params = params.into_inner();