diff --git a/meilisearch-http/src/routes/indexes/mod.rs b/meilisearch-http/src/routes/indexes/mod.rs index ee1c47ac9..18a2e42e8 100644 --- a/meilisearch-http/src/routes/indexes/mod.rs +++ b/meilisearch-http/src/routes/indexes/mod.rs @@ -98,9 +98,14 @@ pub async fn update_index( meilisearch: GuardedData, path: web::Path, body: web::Json, + analytics: web::Data<&'static dyn Analytics>, ) -> Result { debug!("called with params: {:?}", body); let body = body.into_inner(); + analytics.publish( + "Index Updated".to_string(), + json!({ "with_primary_key": body.primary_key}), + ); let settings = IndexSettings { uid: body.uid, primary_key: body.primary_key,