Installation

    Launch MeiliSearch to start the server.

    Download the latest stable release of MeiliSearch with Homebrew.

    Launch MeiliSearch to start the server.

    1. brew update && brew install meilisearch
    2. # Launch MeiliSearch

    Using Docker you can choose to run any available tags (opens new window).

    This command starts the latest stable release of 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.

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

    MeiliSearch is written in Rust. To compile it, is required.

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

    In the cloned repository, compile MeiliSearch.

    1. # Update the rust toolchain to the latest version
    2. cargo build --release
    3. # Execute the server binary
    4. ./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 Tools (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 and update database maximums accordingly.

    Compile for Best Performance

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

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

    This is an example using the command line options.

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

    Getting the latest version of MeiliSearch is a straightforward process: simply fetch and install the latest binary with your preferred method (see 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.

    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.