Meilisearch icon

Meilisearch

Consume Meilisearch API

Overview

This node integrates with the Meilisearch API, specifically allowing users to add or update documents within a specified index. It is useful for scenarios where you need to programmatically manage search indexes by inserting new data or updating existing entries in bulk. For example, you might use this node to sync product information from an e-commerce database into a Meilisearch index to keep your search results up-to-date.

Properties

Name Meaning
Index UID The unique identifier (name) of the Meilisearch index where documents will be added or updated. This must be selected from existing indexes.
Documents JSON A JSON string representing one or more documents to add or update in the index. Must be valid JSON format. Example usage includes serializing input data as JSON to pass here.

Output

The node outputs JSON data reflecting the response from the Meilisearch API after attempting to add or update documents. This typically includes status information about the operation, such as task identifiers or confirmation of success. The output does not include binary data.

Dependencies

  • Requires connection to a Meilisearch instance via its REST API.
  • Needs an API authentication token or key configured in n8n credentials to authorize requests.
  • The base URL of the Meilisearch server must be provided in the node's credential configuration.

Troubleshooting

  • Invalid JSON error: If the "Documents JSON" property contains malformed JSON, the API call will fail. Ensure the JSON string is correctly formatted.
  • Index not found: Selecting an invalid or non-existent Index UID will cause errors. Make sure the index exists in Meilisearch before running the node.
  • Authentication errors: Missing or incorrect API credentials will prevent successful communication with Meilisearch. Verify that the API key and host URL are correctly set.
  • API rate limits or network issues: These can cause request failures; check connectivity and Meilisearch server health.

Links and References

Discussion