可以理解为关系型数据库中,创建数据库
1.添加索引
PUT http://localhost:9200/goods_index/
2.查询索引
GET http://localhost:9200/goods_index/
3.删除索引
DELETE http://localhost:9200/goods_index/
4.关闭索引
POSThttp://localhost:9200/goods_index/_close
5.打开索引
POST http://localhost:9200/goods_index/_open
sql 转dsl
//查询 分页 排序
GET kb_faq/_doc/_search
{
"from": 2,
"size": 2,
"query": {
"match_all": {}
},
"sort": [
{
"fid": {
"order": "desc"
}
}
]
}