Web interface

After adding documents to your MeiliSearch, it is possible to try out the search engine with the integrated web interface. This only works in a development environment.

The web interface is served on the address and port specified in the command line argument --listen. If not specified, the default address and port is used.

WARNING

Since the production environment requires an API-key for searching, the web interface is only available in development mode.

Example

By default the web server can be reached on http://127.0.0.1:7700.

Let’s add some movies.

  1. curl -X POST 'http://127.0.0.1:7700/indexes/movies/documents'\
  2. --data @movies.json
  1. const movies = require('./movies.json')
  2. index.addDocuments(movies).then((res) => console.log(res))
  1. import json
  2. json_file = open('movies.json')
  3. movies = json.load(json_file)
  4. index.add_documents(movies)
  1. $moviesJson = file_get_contents('movies.json');
  2. $movies = json_decode($moviesJson);
  3. $client->index('movies')->addDocuments($movies)
  1. require 'json'
  2. movies_json = File.read('movies.json')
  3. movies = JSON.parse(movies_json)
  4. index.add_documents(movies)

Let’s go to http://127.0.0.1:7700 in our browser.