Elasticsearch基础操作

新增索引库:
PUT /jimmy_article
这种新增后如果不指定type,type默认为_doc.
新增一条数据  指定id
PUT 索引名/type/id
Click the Variables button, above, to create your own variables.
PUT jimmy_article/_doc/1
{
"id":"10001",
"user":"Durandal幽兰黛尔",
"message":"崩坏3女武神",
"postDate":"2023-08-02",
"operate":"admin"
}
posted @ 2023-08-02 14:10  ラピスラズリ(Dawn)  阅读(5)  评论(0编辑  收藏  举报