I need to add an array structure to the document through update api, tried
to add the array to the document in the same way, but dint added the array
field to the document. and it genereted the error "*
set_whatsnew_on_next_login*". can you please tell me how to add this too???
On Monday, 28 May 2012 22:47:03 UTC+5:30, Benjamin Devèze wrote:
To be complete you can use the following syntax to delete an existing
"script" : "ctx._source.remove("foobar")"
On Mon, May 28, 2012 at 6:09 PM, Benjamin Devèze
"maven" -> "mvel"
On Mon, May 28, 2012 at 6:08 PM, Benjamin Devèze
You can use the update API to add new field and delete existing
fields. Basically you have your doc to update in ctx._source and you
can add new fields and delete fields with the supported language of
your choice. For example in maven ctx._source.foobar = 4 will add a
new foobar field. Hope this help
On Mon, May 28, 2012 at 9:35 AM, Narinder Kaur email@example.com
I need to know if we can add new attributes and delete the
ones in the document?? or this api is just to edit the existing
tried this api to add new one, but not getting the results...so please
me if i am doing something wrong or its not the part of the