: Undefined array key "dark" in /www/wwwroot/wql_luoqin_ltd/wp-content/themes/Sakura/functions.php on line 694
class="post-template-default single single-post postid-3155 single-format-standard wp-custom-logo chinese-font ">
PUT /索引名称
{
"settings":{
"number_of_shards":1, #指定主分片的数量
"number_of_replicas":0 #指定副本分片的数量
}
}
2.1.2 查询索引
1,查询单个索引
GET /索引名称/id
2,查询全部索引
GET _cat/indices?v
例:查询全部索引
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open .apm-custom-link xAsvjOUKQ-eu9svfRRr7cA 1 0 0 0 208b 208b
green open .apm-agent-configuration 268nkfGXQuyA_6MbsVW2tA 1 0 0 0 208b 208b
green open 索引名称 lUlpnVEQTFu7QxRVqpA-4Q 1 0 0 0 208b 208b
green open .kibana_task_manager_7.14.2_001 cr-FhHrCS9SLhAciXNPX1g 1 0 14 957 1.6mb 1.6mb
green open .kibana_7.14.2_001 kMXQbj85S1mq8RHGyaf8tw 1 0 50 16 4.7mb 4.7mb
green open kxj NTwdDaKyQCSkhBgUkKKqAg 1 0 0 0 208b 208b
green open .tasks VDAoW0uuTWyjMnOYeOp6EA 1 0 4 0 21.4kb 21.4kb
green open .kibana-event-log-7.14.2-000001 6XBKme7bSYeFi9x1lo5CMw 1 0 3 0 16.4kb 16.4kb
health:健康状态(green->健康 yellow->存在风险但可用 red->不可用)
status:当前索引的开启状态,默认open为开启
index:索引的名称
uuid:索引的id唯一标识,uuid自动生成
pri:索引的主分片数量
rep:索引的副本数量
docs.count:索引下的doc的数量
docs.deleted:索引下删除doc的数量
store.size:占用的大小
pri.store.size:主分片占用的大小
注:索引名称已.开头的是系统索引或临时索引
删除索引
格式:
DELETE /索引名称
2.2 映射的基本操作
同时创建索引和映射
PUT /索引名称
"mappings":{
"properties":{
"字段":{
type:""
}
…………
}
}
Comments | NOTHING
Warning: Undefined variable $return_smiles in /www/wwwroot/wql_luoqin_ltd/wp-content/themes/Sakura/functions.php on line 1109