Actions24
- Documents Actions
- Indexes Actions
- Keys Actions
- Search Actions
- Settings Actions
- Tasks Actions
Overview
This node integrates with the Meilisearch API, specifically allowing users to create new search indexes within a Meilisearch instance. Creating an index is essential for organizing and structuring searchable data collections. This operation is beneficial when setting up a new dataset that requires fast and relevant full-text search capabilities.
Practical examples include:
- Initializing a new product catalog index in an e-commerce platform.
- Creating an index for user-generated content such as reviews or comments.
- Setting up indexes for different document types in a knowledge base.
Properties
| Name | Meaning |
|---|---|
| UID | The unique identifier (name) of the index to be created. Must be unique within Meilisearch. |
| Primary Key | The attribute name that acts as the unique key for documents within the index. Optional but recommended for uniquely identifying records. |
Output
The node outputs JSON data representing the newly created index. This typically includes details such as the index UID, primary key, creation timestamp, and other metadata returned by the Meilisearch API. There is no binary output associated with this operation.
Dependencies
- Requires connection to a Meilisearch server instance.
- Needs an API authentication token configured in n8n credentials to authorize requests.
- The base URL of the Meilisearch server must be provided in the credential configuration.
Troubleshooting
Common issues:
- Attempting to create an index with a UID that already exists will result in an error.
- Providing an invalid or missing API key will cause authentication failures.
- Network connectivity problems to the Meilisearch server can prevent successful requests.
Error messages and resolutions:
- "Index already exists": Choose a different UID for the new index.
- "Unauthorized" or "Authentication failed": Verify that the API key credential is correctly set up and has sufficient permissions.
- "Network error" or "Could not connect": Check the Meilisearch server URL and network accessibility.