1.创建索引
PUT localhost:9200/customer?pretty
创建成功,返回:
{
"acknowledged": true,
"shards_acknowledged": true,
"index": "avengers"
}
查看索引:
GET localhost:9200/_cat/indices?v
2. 插入 文档 /PUT localhost:9200/_doc/1 { }
2024-01-01 10:19:40
1.创建索引
PUT localhost:9200/customer?pretty
创建成功,返回:
{
"acknowledged": true,
"shards_acknowledged": true,
"index": "avengers"
}
查看索引:
GET localhost:9200/_cat/indices?v
2. 插入 文档 /PUT localhost:9200/_doc/1 { }
下一篇:ES常用命令