ES.创建索引

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 { }

猜你喜欢

转载自www.cnblogs.com/initx/p/12180969.html
今日推荐