Installation

Download and launch

Download the latest stable release of MeiliSearch with curl.

Launch MeiliSearch to start the server.

  1. $ curl -L https://install.meilisearch.com | sh
  2. $ ./meilisearch
  3. Server is listening on: http://127.0.0.1:7700

Download the latest stable release of MeiliSearch with Homebrew.

Launch MeiliSearch to start the server.

  1. $ brew update && brew install meilisearch
  2. $ meilisearch
  3. Server is listening on: http://127.0.0.1:7700

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
  5. Server is listening on: http://0.0.0.0:7700

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. $ echo "deb [trusted=yes] https://apt.fury.io/meilisearch/ /" > /etc/apt/sources.list.d/fury.list
  2. $ apt update && apt install meilisearch-http
  3. $ meilisearch
  4. Server is listening on: http://127.0.0.1:7700

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

Configuration Options

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'
  2. Server is listening on: http://127.0.0.1:7700

Here is the 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), all minor updates (v0.X) are considered breaking. Therefore, MeiliSearch databases are not compatible across versions for as long as we are in beta.

If you want to transfer your database from an outdated MeiliSearch instance to the most recent version, we recommend following the below guide.

If you get the error Cannot open database, expected MeiliSearch engine version: X.X.X, current engine version Y.Y.Y, simply delete your database folder (defaults to data.ms), and re-index all your documents.

Migrating a Database to a Later Version

Using dumps, you can export your MeiliSearch data—all indexes, documents, and settings contained in your database—into a transferrable state. Then, you can re-import this data after updating MeiliSearch to the latest version.

Since the content is exported in a way that guarantees mobility, it needs to be re-indexed. If your database is large, this process can take a long time. Nonetheless, this process guarantees to migrate all settings and documents between two different versions of MeiliSearch.

If you want a complete guide on how to update MeiliSearch on DigitalOcean, please look at this GitHub issueInstallation - 图3 (opens new window).