Elasticsearch基础之:通过Restful API操作数据

2022-01-19 00:00:00 索引 查询 数据 是一个 希望

1、上传数据

PUT http://localhost:9200/megacorp/employee/1
请求body的内容:

{
"first_name" : "John",
"last_name" : "Smith",
"age" : 25,
"about" : "I love to go rock climbing",
"interests": [ "sports", "music" ]
}

相关文章