登录kibana,打开开发工具
写入数据
java
PUT test20240311/person/1
{
"name": "张三",
"mobile":"13011111111"
}
查询数据
java
GET /test20240311/person/_search
{"query": {
"term": {
"mobile": {
"value": "13011111111"
}
}
}
}
删除数据
java
POST /test20240311/person/_delete_by_query
{"query": {
"term": {
"mobile": {
"value": "13011111111"
}
}
}
}
更新数据
java
POST /test20240311/person/1/_update
{
"doc":{
"name":"张四",
"mobile": "13011111112"
}
}