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.
curl -X POST 'http://127.0.0.1:7700/indexes/movies/documents'\
--data @movies.json
const movies = require('./movies.json')
index.addDocuments(movies).then((res) => console.log(res))
import json
json_file = open('movies.json')
movies = json.load(json_file)
index.add_documents(movies)
$moviesJson = file_get_contents('movies.json');
$movies = json_decode($moviesJson);
$client->index('movies')->addDocuments($movies)
require 'json'
movies_json = File.read('movies.json')
movies = JSON.parse(movies_json)
index.add_documents(movies)
Let’s go to http://127.0.0.1:7700
in our browser.
当前内容版权归 meilisearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 meilisearch .