Meilisearch icon

Meilisearch

Consume Meilisearch API

Overview

The Meilisearch node for n8n allows you to interact with the Meilisearch API. Specifically, the Settings → Reset Index Settings operation enables users to reset the settings of a selected index back to their default values. This is useful when you want to remove all custom configurations (such as ranking rules, synonyms, stop-words, etc.) from an index and restore its original state.

Common scenarios:

  • Undoing experimental or unwanted changes to index settings.
  • Quickly reverting an index to its default configuration after testing.
  • Ensuring consistency across multiple indexes by resetting them before applying new settings.

Practical example:
If you've modified the ranking rules or synonyms for an index and want to start fresh, use this operation to reset all settings at once.


Properties

Name Meaning
UID Name of the index. You select the index to reset from a list of available indexes. The options are dynamically loaded and display both the UID and primary key of each index.

Output

  • The output will be a JSON object containing the result of the reset operation. Typically, this includes information about the task created in Meilisearch to process the reset request (such as a task UID, status, type, and enqueued time).
  • No binary data is produced.

Dependencies

  • External Service: Requires access to a running Meilisearch instance.
  • API Key: Needs valid Meilisearch API credentials configured in n8n (meilisearchApi).
  • Environment Variable: The base URL for Meilisearch must be set in the credentials as host_url.

Troubleshooting

Common issues:

  • Invalid UID: If the selected index does not exist, the operation will fail. Ensure the UID is correct and the index exists.
  • Authentication errors: If the API key is missing or incorrect, you may receive authentication or authorization errors.
  • Connection errors: If the Meilisearch server is unreachable, check your network connection and the host_url configuration.

Error messages and resolutions:

  • "Index not found": Double-check the UID and ensure the index exists in your Meilisearch instance.
  • "Unauthorized" or "Invalid API key": Verify that your API credentials are correctly set up in n8n.
  • "Network error": Ensure the Meilisearch server is running and accessible from your n8n instance.

Links and References

Discussion