1、安装
sudo elasticsearch/bin/plugin -install elasticsearch/mavel/latest
http://localhost:9200/_plugin/mavel
2、sense菜单-》执行api调用
3、索引初始化
curl -X PUT 'http://192.168.1.10:9200/library/' -d '{
"settings":{
"index" :{
"number_of_shards":5,
"number_of_relicas":1
}
}
}'
其它参数有,
blockes.read_only:为true,则当前索引只允许读,不允许写或者更新
blocks.write:
blockes.metadata:
4、在Mavel-》Sense界面中
PUT http://192.168.1.10:9200/library/
{
"settings":{
"index" :{
"number_of_shards":5,
"number_of_relicas":1
}
}
}
响应结果1:
{
“acknowledged”:true
}
响应结果2:
{
“error”:"xxxx",
“status”:"400"
}
-------------------------------------------------------------
5、相应的,在head插件中,直接有菜单【新建索引】