Skip to content

MeiliSearch

This guide is intended for older Foundation projects that are not using Strapi V5. If you are using Foundation 3.0 or later, you should use the built-in Meilisearch integration instead.

Meilisearch is an open-source, fast, and easy-to-use search engine that allows you to add powerful full-text search capabilities to your applications. It is designed to deliver relevant search results quickly, even with large datasets, and provides features like typo tolerance, filters, and faceted search.

  1. Go to https://beheer.myrootnet.nl/project/

  2. Create a new project

    a. Template: EF2 meilisearch with supervisor

    b. Name: %PROJECT_NAME% - Search (e.g: vandervalkdegroot - Search)

  3. Grant yourself access. Go to: Toegang > Rollen toevoegen > check Beheerder and save

  4. Add a domain name to the project. Preferably use the subdomain search (e.g.: search.vandervalkdegroot.bee.ef2.builders).

  5. Make sure the subdomain actually points to the server by correctly configuring the DNS settings.

  6. Log in to the server via SSH.

  7. Create the “meilisearch” directory:

    create meilisearch via SSH
    mkdir meilisearch
    create meilisearch via SSH from project directory
    mkdir /projects/{{project_name}}/meilisearch
  8. Navigate to the newly created directory: cd meilisearch

  9. Install Meilisearch

    Install Meilisearch
    curl -L https://install.meilisearch.com | sh
  10. Restart the Supervisor process

    Copy the project ID from Rootnet

    restart meilisearch
    supervisorctl -c /etc/projects/supervisor/{{project_from_rootnet}}.conf restart meilisearch

    You may encounter an error, but don’t panic as long as the service restarts. Otherwise you should panic!

    meilisearch not running error
    meilisearch: ERROR (not running)
    meilisearch: started
  11. To proceed, you will need the MASTER_KEY of Meilisearch.

    You can find it in the Supervisor config: cat /etc/projects/supervisor/-{{project_name}}.conf and search for MASTER_KEY. If this is not working you can use Postman or any other service to get this.

    Go to https://search.{{project_name}}.bee.ef2.builders/keys add the bearer token in Authorization > Bearer Token

  12. With the help of the API key(s) and the associated domain name, you should now be able to connect to Meilisearch.

  13. You can now use:

    You can now use the URL, for example:
    search.{{project_id_from_rootnet}}.bee.ef2.builders, as the Meilisearch URL.