Elasticsearch基础之:通过Restful API操作数据
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" ]
}
相关文章