From 1d73f484f0b63433093d72934a535709e34f6508 Mon Sep 17 00:00:00 2001 From: Tamo Date: Wed, 20 Oct 2021 14:29:08 +0200 Subject: [PATCH] update the primary key when creating a new index --- meilisearch-http/src/routes/indexes/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch-http/src/routes/indexes/mod.rs b/meilisearch-http/src/routes/indexes/mod.rs index 743da5b6a..81f937013 100644 --- a/meilisearch-http/src/routes/indexes/mod.rs +++ b/meilisearch-http/src/routes/indexes/mod.rs @@ -63,7 +63,7 @@ pub async fn create_index( analytics.publish( "Index Created".to_string(), - json!({ "with_primary_key": body.primary_key}), + json!({ "primary_key": body.primary_key}), Some(&req), ); let meta = meilisearch.create_index(body.uid, body.primary_key).await?; @@ -107,7 +107,7 @@ pub async fn update_index( let body = body.into_inner(); analytics.publish( "Index Updated".to_string(), - json!({ "with_primary_key": body.primary_key}), + json!({ "primary_key": body.primary_key}), Some(&req), ); let settings = IndexSettings {