update-index
Modify the primary key of a Meilisearch index to enhance data organization and retrieval efficiency. Input includes the index identifier and the new primary key.
Instructions
Update a Meilisearch index (currently only supports updating the primary key)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
indexUid | Yes | Unique identifier of the index | |
primaryKey | Yes | New primary key for the index |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"indexUid": {
"description": "Unique identifier of the index",
"type": "string"
},
"primaryKey": {
"description": "New primary key for the index",
"type": "string"
}
},
"required": [
"indexUid",
"primaryKey"
],
"type": "object"
}