Actions24
- Documents Actions
- Indexes Actions
- Keys Actions
- Search Actions
- Settings Actions
- Tasks Actions
Overview
This node interacts with the Meilisearch API, specifically focusing on managing and retrieving information about search indexes. The "Get Stats of an Index" operation under the "Indexes" resource fetches statistical data for a specified index in Meilisearch. This is useful for monitoring index health, usage, and performance metrics.
Common scenarios include:
- Monitoring the number of documents indexed.
- Checking index size or update status.
- Integrating index statistics into dashboards or automated workflows to trigger alerts or maintenance tasks.
For example, a user might use this node to periodically retrieve document counts from an index to ensure data synchronization between their application and Meilisearch.
Properties
| Name | Meaning |
|---|---|
| UID | The unique identifier (name) of the index for which statistics are requested. This property is required and must be selected from existing indexes available in the Meilisearch instance. |
The UID property is presented as a dropdown list populated dynamically by fetching all available indexes from the Meilisearch server.
Output
The node outputs JSON data containing the statistics of the specified index. The exact structure depends on the Meilisearch API response but typically includes fields such as:
- Number of documents in the index.
- Primary key of the index.
- Other relevant metadata related to the index's state and usage.
No binary data output is involved in this operation.
Dependencies
- Requires connection to a Meilisearch instance via an API endpoint URL.
- Needs an API authentication token or key configured in n8n credentials to authorize requests.
- The node relies on Meilisearch's REST API being accessible and responsive.
Troubleshooting
Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Specifying a UID that does not exist will result in errors or empty responses.
- Network connectivity problems can prevent the node from reaching the Meilisearch server.
Error messages:
- Authentication errors typically indicate invalid or expired API keys; verify and update credentials.
- "Index not found" errors suggest the UID does not match any existing index; confirm the index name.
- Timeout or connection errors require checking network access and Meilisearch server availability.