Elasticsearch基础操作

ラピスラズリ(Dawn) / 2023-08-02 / 原文

新增索引库:
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"
}