登录kibana,打开开发工具
![](https://file.jishuzhan.net/article/1767413547748298754/2da1779962d0bb3d519569bb9266296b.webp)
写入数据
java
PUT test20240311/person/1
{
"name": "张三",
"mobile":"13011111111"
}
![](https://file.jishuzhan.net/article/1767413547748298754/0e8fe1a7c220c8cd4a4f29887cdb1e93.webp)
查询数据
java
GET /test20240311/person/_search
{"query": {
"term": {
"mobile": {
"value": "13011111111"
}
}
}
}
![](https://file.jishuzhan.net/article/1767413547748298754/592338b4430ef34de5afc6360d66f5ea.webp)
删除数据
java
POST /test20240311/person/_delete_by_query
{"query": {
"term": {
"mobile": {
"value": "13011111111"
}
}
}
}
![](https://file.jishuzhan.net/article/1767413547748298754/48011567215e46a337f2e56df6af1116.webp)
更新数据
java
POST /test20240311/person/1/_update
{
"doc":{
"name":"张四",
"mobile": "13011111112"
}
}
![](https://file.jishuzhan.net/article/1767413547748298754/98e817c4a3b7477ee569766497899ef4.webp)