add-documents
Upload JSON documents to a Meilisearch index, specifying the index identifier and optional primary key for efficient data management and search functionality.
Instructions
Add documents to a Meilisearch index
Input Schema
Name | Required | Description | Default |
---|---|---|---|
documents | Yes | JSON array of documents to add | |
indexUid | Yes | Unique identifier of the index | |
primaryKey | No | Primary key for the documents |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"documents": {
"description": "JSON array of documents to add",
"type": "string"
},
"indexUid": {
"description": "Unique identifier of the index",
"type": "string"
},
"primaryKey": {
"description": "Primary key for the documents",
"type": "string"
}
},
"required": [
"indexUid",
"documents"
],
"type": "object"
}