I hava a document in Elasticsearch:
{
"_index": "test",
"_type": "document",
"_id": "1",
"_score": 1,
"_source": {
"class": "aaa",
"id": 1,
"items": [{
"class": "aaa",
"id": 1
}, {
"class": "ccc",
"id": 2
}],
"bianhao": "123"
}
}
I want to replace {"class": "ccc","id": 2} of items with {"class": "ccc12","id": 2},how to achieve that?