ES.创建索引

1.创建索引
PUT localhost:9200/customer?pretty


创建成功,返回:
{
"acknowledged": true,
"shards_acknowledged": true,
"index": "avengers"
}
查看索引:
GET localhost:9200/_cat/indices?v
ES.创建索引

  2. 插入 文档 /PUT localhost:9200/_doc/1 { }

上一篇:Docker Compose搭建ELK


下一篇:ES常用命令