Installation

Download and Launch

Download the latest stable release of MeiliSearch with cURL.

Launch MeiliSearch to start the server.

  1. # Install MeiliSearch
  2. curl -L https://install.meilisearch.com | sh
  3. # Launch MeiliSearch
  4. ./meilisearch

Download the latest stable release of MeiliSearch with Homebrew.

Launch MeiliSearch to start the server.

  1. # Update brew and install MeiliSearch
  2. brew update && brew install meilisearch
  3. # Launch MeiliSearch
  4. meilisearch

Using Docker you can choose to run any available tagsInstallation - 图1 (opens new window).

This command starts the latest stable release of MeiliSearch.

  1. docker run -it --rm \
  2. -p 7700:7700 \
  3. -v $(pwd)/data.ms:/data.ms \
  4. getmeili/meilisearch

Data written to a Docker container is not persistent and is deleted along with the container when the latter is stopped. Docker volumes are not deleted when containers are removed. It is then recommended to share volumes between your containers and your host machine to provide persistent storage. MeiliSearch writes data to /data.ms

Download the latest stable release of MeiliSearch with APT.

Launch MeiliSearch to start the server.

  1. # Add MeiliSearch package
  2. echo "deb [trusted=yes] https://apt.fury.io/meilisearch/ /" > /etc/apt/sources.list.d/fury.list
  3. # Update APT and install MeiliSearch
  4. apt update && apt install meilisearch-http
  5. # Launch MeiliSearch
  6. meilisearch

MeiliSearch is written in Rust. To compile it, installing the Rust toolchainInstallation - 图2 (opens new window) is required.

If the Rust toolchain is already installed, clone the repository on your local system and change it to your working directory.

  1. git clone https://github.com/meilisearch/MeiliSearch
  2. cd MeiliSearch

In the cloned repository, compile MeiliSearch.

  1. # Update the rust toolchain to the latest version
  2. rustup update
  3. # Compile the project
  4. cargo build --release
  5. # Execute the server binary
  6. ./target/release/meilisearch

To install MeiliSearch on Windows, use Docker or compile from the source.

A common compilation error ("link.exe not found") can be solved by installing Visual Studio Build ToolsInstallation - 图3 (opens new window) (scroll down and click on Tools for Visual Studio 2019).

MeiliSearch will allocate 100GB on launch. If disk space is an issue on your machine, adjust the main database and update database maximums accordingly.

Compile for Best Performance

For best performance, compile MeiliSearch on the machine you intend to run it on. This way, the binary is optimized for your specific architecture.

Cloud Deploy

To deploy MeiliSearch on a cloud service, follow one of our dedicated guides:

Configuration Options

Configuration options are added at launch, either through command line options or through environment variables.

This is an example using the command line options.

  1. ./meilisearch --db-path ./meilifiles --http-addr '127.0.0.1:7700'

Here is a list of all the options and how to use them.

Updating MeiliSearch

Getting the latest version of MeiliSearch is a straightforward process: simply fetch and install the latest binary with your preferred method (see Installation above).

However, please note that prior to our official release (v1.0), databases are not compatible across versions. Any database created by MeiliSearch v0.X can only be read by that version.

Migrating Your Database to a Later Version

If you get the error Cannot open database, expected MeiliSearch engine version: X.X.X, current engine version Y.Y.Y, your database is not compatible with the version you’re using. To migrate your database to the most recent version of MeiliSearch, follow our dedicated guide.