POST cq-tbpitem/_update_by_query
{
"script": {
// "source": "ctx._source.CUSTOMID='2700011' ",
{
"script": {
// "source": "ctx._source.CUSTOMID='2700011' ",
"source": "ctx._source.testupdate=ctx._source.CUSTOMID+'|'+ctx._source.REPORTNUM ",
"lang": "painless"
},
"query": {
"bool": {
"must": [
{
"term": {
"CUSTOMID": {
"value": "1800621"
}
}
},
{
"wildcard": {
"SYSPRIMARYKEY": {
"value": "*AA*"
}
}
}
]
}
}
}
"lang": "painless"
},
"query": {
"bool": {
"must": [
{
"term": {
"CUSTOMID": {
"value": "1800621"
}
}
},
{
"wildcard": {
"SYSPRIMARYKEY": {
"value": "*AA*"
}
}
}
]
}
}
}