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 { }
原文:https://www.cnblogs.com/initx/p/12180969.html