elastic
查看所有索引
GET _cat/indices?v
查看集群健康
GET _cluster/health?pretty
查看集群设置
GET _cluster/settings
创建索引
PUT index
{
"settings": {
"number_of_shards" : "1",
"number_of_replicas" : "0"
},
"mappings": {
"properties": {
"name": {
"type": "text"
},
"age": {
"type": "long"
},
"address": {
"type": "text",
"index": true
},
"is_active": {
"type": "boolean"
},
"gender": {
"type": "text"
}
}
}
}

浙公网安备 33010602011771号