If you send the full document without the element you need to remove in the 
array, this should work fine.
How do you actually update your document?

-- 
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr


Le 24 juin 2014 à 09:18:20, Madhumita Sadhukhan ([email protected]) 
a écrit:

I have a requirement where I need to update(not append) existing values within 
a list or array in Elastic Search.
Is this feature supported in elastic search?

For eg:

I have a field called jobs as part of my document

"jobs": [
                  {
                     "status": "InProgress",
                     "runId": 1,
                     "start_date": 2101112,
                     "orderId": "undefined"
                  },
                  {
                     "status": "InProgress",
                     "runId": 2,
                     "start_date": 2101112,
                     "orderId": "undefined"
                  },
               ],
and I am required to update the orderId for each job run to different values.
Currently I am only able to append a job but I cannot update the attributes of 
each job later.
Is this usecase supported and possible in Elastic Search?
--
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/ba7f8f47-3578-4b47-9410-9dd2622911a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/etPan.53a92849.66334873.950f%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to