Hi all
can somebody help me/guide me on how to update an existing nested type,i
could get to add new object to the nested array of objects but not update
an existing nested type
example document from ES
{
code:1234
blogname:my first blog
association:[{
code:234,
imagepath:"/web/z/l/test.jpg" },
code :546
imagepath:"Null"
]
so my question is how would i update my object with "code:546" path from
NULL to "/web/l/z/sample.jpg"
my update command looks like
{ "update" : { "_index" : "blog", "_type" : "posts", "_id" : "4611" } }
{ "script" : "WHAT CONDITION SHOULD GO HERE ", "params" : { "association":
[ {"code": 546, "path": "/web/l/z/sample.jpg" }]}}
How to get an existing object from array and update it..
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.