mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
update the primary key when creating a new index
This commit is contained in:
parent
cfcd3ae048
commit
1d73f484f0
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ pub async fn create_index(
|
||||||
|
|
||||||
analytics.publish(
|
analytics.publish(
|
||||||
"Index Created".to_string(),
|
"Index Created".to_string(),
|
||||||
json!({ "with_primary_key": body.primary_key}),
|
json!({ "primary_key": body.primary_key}),
|
||||||
Some(&req),
|
Some(&req),
|
||||||
);
|
);
|
||||||
let meta = meilisearch.create_index(body.uid, body.primary_key).await?;
|
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();
|
let body = body.into_inner();
|
||||||
analytics.publish(
|
analytics.publish(
|
||||||
"Index Updated".to_string(),
|
"Index Updated".to_string(),
|
||||||
json!({ "with_primary_key": body.primary_key}),
|
json!({ "primary_key": body.primary_key}),
|
||||||
Some(&req),
|
Some(&req),
|
||||||
);
|
);
|
||||||
let settings = IndexSettings {
|
let settings = IndexSettings {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue