An open-source, fast, and hyper-relevant search engine that fits effortlessly into your projects.
50M+
Meilisearch is a search engine for fast, relevant full-text, semantic, and hybrid search. It is open source under the MIT license.
This image runs the engine on your own machine or server. If you would rather not run a server, Meilisearch Cloud runs the same engine for you.
| What you get | Get started | |
|---|---|---|
| Meilisearch Cloud (recommended) | Managed Meilisearch: no servers to deploy, upgrade, or back up, plus monitoring, search analytics, and team management. 14-day free trial, no credit card required. | Create a project |
| Self-hosted with this image | The open-source engine on your own infrastructure. You handle security, upgrades, backups, and scaling. | Quick start |
Both run the same engine and expose the same API, so you can start on one and move to the other.
npm install -g @meilisearch/cli
meili teleport
meili teleport creates your Meilisearch Cloud account if you do not have one, creates a project on the free trial, and copies your data to it. It works with a local or a production instance, v1.16 or later. See Migrating to Meilisearch Cloud.
Run Meilisearch and keep its data in a local folder:
docker run -it --rm \
-p 7700:7700 \
-v $(pwd)/meili_data:/meili_data \
getmeili/meilisearch:latest
Add documents:
curl -X POST "http://localhost:7700/indexes/movies/documents" \
-H 'Content-Type: application/json' \
--data-binary '[
{ "id": 1, "title": "Carol", "genres": ["Romance", "Drama"] },
{ "id": 2, "title": "Wonder Woman", "genres": ["Action", "Adventure"] },
{ "id": 3, "title": "Life of Pi", "genres": ["Adventure", "Drama"] }
]'
Search, typo included:
curl -X POST "http://localhost:7700/indexes/movies/search" \
-H 'Content-Type: application/json' \
--data-binary '{ "q": "wondre woman" }'
Meilisearch returns Wonder Woman despite the typo. Indexing is asynchronous, so if the search comes back empty, wait a moment and retry.
Set a master key of at least 16 bytes and the production environment. Without a master key, anyone who can reach the port can read and change your data.
docker run -d \
-p 7700:7700 \
-e MEILI_ENV='production' \
-e MEILI_MASTER_KEY='A_MASTER_KEY_OF_AT_LEAST_16_BYTES' \
-v $(pwd)/meili_data:/meili_data \
getmeili/meilisearch:v1.58
In production you are also responsible for:
latest, so every machine runs the same release.Meilisearch Cloud takes care of all of the above. Start a 14-day free trial, or move an existing instance with meili teleport.
/meili_data, and the database is stored in /meili_data/data.ms. Mount a volume there to keep your data.-e, for example MEILI_MASTER_KEY or MEILI_ENV, or as a command-line argument after the image name. See the configuration reference.latest follows the most recent release.Full guide: Using Meilisearch with Docker.
docker pull getmeili/meilisearch:latest