ES 群集架构说明
最编程
2024-03-06 20:38:07
...
// 创建pipeline: 名字为replace_content,如果数据的name字段值是swk,就把name字段的值改为孙悟空
http://xxx.xxx.xxx.xxx:9200/_ingest/pipeline/replace_content
{
"processors":[
{
"set":{
"if":"ctx.name == 'swk'",
"field":"name",
"value":"孙悟空"
}
}
]
}
// 使用pipeline:就是在插入数据时指定你的pipeline名字
http://xxx.xxx.xxx.xxx:9200/person/person?pipeline=replace_content
{
"name":"swk",
"country": "中国",
"age":500
}
// 结果:
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 5.896224,
"hits": [
{
"_index": "person",
"_type": "person",
"_id": "K5qUSXgBLLjdyTtcB4ZQ",
"_score": 5.896224,
"_source": {
"country": "中国",
"name": "孙悟空",
"age": 500
}
}
]
}
}
推荐阅读
-
系统架构设计说明 (78) - 应用服务器技术
-
epoll 架构 epoll 使用说明(精髓)
-
[传输] 1.了解蓝牙核心技术(蓝牙协议、架构、硬件和软件说明)
-
系统架构设计说明 (89) - 网络安全系统
-
架构设计|基于筏式监听器的实时同步主/备群集
-
系统架构设计说明 (3) - 操作系统存储管理
-
软考试说明 (IX) 高级系统架构师/分析师:软件工程与项目管理
-
ES 群集扩展 - 添加新节点 - II 实验步骤
-
自习室预订系统 | springboot 框架 + Mysql + Java + 基于 B/S 架构的自习室预订系统设计与实施(可运行源代码 + 数据库 + 设计文档 + 部署说明)
-
各种系统架构图和详细说明