Actions24
- Documents Actions
- Indexes Actions
- Keys Actions
- Search Actions
- Settings Actions
- Tasks Actions
Overview
The Meilisearch node for n8n allows you to interact with the Meilisearch API. Specifically, the Indexes → List Indexes operation retrieves a list of all indexes in your Meilisearch instance. This is useful for scenarios where you need to enumerate available indexes, audit your search infrastructure, or dynamically select an index for further operations.
Practical examples:
- Displaying all available indexes to users for selection.
- Automating index management tasks (e.g., monitoring, reporting).
- Integrating Meilisearch index data into dashboards or workflows.
Properties
Name | Meaning |
---|---|
Additional Fields | A collection of optional parameters to refine the results: - Offset: Number of indexes to skip. - Limit: Maximum number of results to return. |
Output
The output will be a JSON array where each item represents an index object from Meilisearch. Each object typically contains details such as the index's unique identifier and metadata. The exact structure depends on the Meilisearch API but commonly includes fields like:
[
{
"uid": "index_name",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-02T00:00:00Z",
// ...other index metadata
}
]
No binary data is produced by this operation.
Dependencies
- External Service: Requires access to a running Meilisearch instance.
- API Key: You must configure the
meilisearchApi
credential in n8n, which should include the host URL and an API key with sufficient permissions.
Troubleshooting
- Invalid Credentials: If the API key or host URL is incorrect, you may receive authentication errors. Double-check your credentials in n8n.
- Connection Errors: Network issues or incorrect host URLs can cause connection failures.
- Empty Results: If no indexes exist, the returned array will be empty.
- Parameter Errors: Providing invalid values for "Offset" or "Limit" (such as negative numbers) may result in API errors.