I have my document structure like this:
{
"documentID": 123,
"originalFilename": "Build a Better Post.pdf",
"modDate": "2017-11-16T18:22:54.48",
"documentType": "pdf",
"keySystem": "web",
"title": "Build a Better Post",
"createPreview": false,
"uploadedBy": "DA5208B3-2198-44C6-8256-0AEBC4DD1588",
"streamItemData": {
"itemID": 800,
"author": {
"employeeID": 9,
"authorName": {
"firstName": "Joseph",
"preferredName": "Joe",
"lastName": "Smith"
},
"title": "manager"
}
}
}
There are about millions of documents in my elasticsearch. One author object can be present in thousands of documents basically there is 1 to many relationship there.
Whenever the nested object author is updated, say title is updated i want to update all my documents which contain this author which could be millions of documents. Is there any elastic search query with which i can achieve this. I understand that there should be a bulk update process which should handle this, but is there any approach where i don't have to query all the documents which contain this object and then update those one by one.