目录
docker pull getmeili/meilisearch:latest
mkdir -p /opt/meili_data
docker run -it --rm \
-p 7700:7700 \
-v /opt/meili_data:/meili_data \
getmeili/meilisearch:latest
测试后建议使用守护进程启动
docker run -di --rm \
-p 7700:7700 \
-v /opt/meili_data:/meili_data \
getmeili/meilisearch:latest
curl -X POST 'http://192.168.168.107:7700/indexes' \
-H 'Content-Type: application/json' \
--data-binary '{
"uid": "movies",
"primaryKey": "id"
}'
#movies.json 是官方提供的测试文件,下载地址:https://www.meilisearch.com/movies.json
wget https://www.meilisearch.com/movies.json
curl -X POST 'http://192.168.168.107:7700/indexes/movies/documents' \
-H 'Content-Type: application/json' \
--data-binary @movies.json
搜索速度很快
开源地址:
https://github.com/meilisearch/meilisearch
官网:
www.meilisearch.com
开发手册:
https://www.meilisearch.com/docs/learn/what_is_meilisearch/overview