1、输入命令,点击绿色的三角形箭头。
PUT chuyuan //创建索引
GET chuyuan/_settings //查看chuyuan索引下的配置
GET _all/_settings //查看所有索引下的配置
number_of_shards :分片数 ,创建之后不能更改
number_of_replicas:备份数
---------------------------------------------------------------------------------------------------------------------------------------------------------------
DELETE chuyuan 删除成功,右侧会出现:
2、指定内存分片数和备份数,创建索引:
PUT /chuyuan/
{
"settings":{
"index":{
"number_of_shards" : "3",
"number_of_replicas" : "0"
}
}
}
创建成功则出现:
3、重新查看chuyuan 的配置信息: