Моя цель - обновить документ.
var elasticsearch = require('elasticsearch');
var client = new elasticsearch.Client({
host:"**************",
log: 'trace',
});
"hits": [
{
"_index": "fds",
"_type": "_doc",
"_id": "9560206-El-MOHABXh-qOCdi1FYN",
"_score": 1.0,
"_source": {
"videoId": "El-MOHABXh-qOCdi1FYN",
"mobile": "9560206",
"name": "alexa",
"choice": "like",
"code": "+95",
"lastUpdate": "2020-01-15T06:12:00.073Z"
}
},
{
"_index": "fds",
"_type": "_doc",
"_id": "9560206-SQENUHEBcYN_H8khsonC",
"_score": 1.0,
"_source": {
"videoId": "El-MOHABXh-qOCdi1FYN",
"mobile": "9560206",
"name": "alexa",
"choice": "like",
"code": "+91",
"lastUpdate": "2020-01-15T06:12:00.073Z"
}
}]
У меня вопрос, как мы можем обновить документ с полями условий: videoId , mobile и код. и обновите имена полей: имя и выбор .
допустим, у нас есть условия videoId ":" El-MOHABXh-qOCdi1FYN "," mobile ":" 9560206 " и " code ":" +91 "