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