一、Index
2.1 创建Index
# 可以直接向 Elastic 服务器发出 PUT 请求。
# 下面的例子是新建一个名叫 weather 的 Index。
curl -X PUT 'localhost:9200/weather'
2.2 删除索引
# 下面的例子是删除一个名叫 weather 的 Index。
curl -X DELETE 'localhost:9200/weather'
二、Document
{
"user": "122",
"title": "123",
"desc": "123"
}