<p dir="auto">The present update API has option to upsert document when it does not exist. The result is something like:<br>
{"ok":true,"_index":"metadata","_type":"load","_id":"ind1","_version":1}</p>
<p dir="auto">It does not tell us whether the document existed, or was upserted or fields were updated. If in the result we can have the following tunable via the update api:</p>
<ul dir="auto">
<li>Difference between old and new values</li>
<li>Whether document was upserted or updated</li>
<li>List of fields that were updated, or that existed before</li>
</ul>
<p dir="auto">I'm not sure if this feature could be implemented as a plugin or by some other way.</p>
<p dir="auto">Hi,</p>
<p dir="auto">I'm testing my cluster and cycling in new nodes and cycling out old ones however after waiting a couple of hours shards and replicas haven't sorted themselves out. When listing the status of all shards via GET /cat/_shards I receive...</p>
<p dir="auto">{<br>
"error": {<br>
"root_cause": [<br>
{<br>
"type": "illegal_argument_exception",<br>
"reason": "Multiple entries with same key: [cloudtrail-2015.10.16][0], node[2yaILlgNTX24_lrlf77gIg], [P], v[25], s[STARTED], a[id=wtXiTTw9T4C9KHucOIQKGA]=org.elasticsearch.action.admin.indices.stats.CommonStats@7968034a and [cloudtrail-2015.10.16][0], node[2yaILlgNTX24_lrlf77gIg], [P], v[25], s[STARTED], a[id=wtXiTTw9T4C9KHucOIQKGA]=org.elasticsearch.action.admin.indices.stats.CommonStats@49422abd"<br>
}<br>
],<br>
"type": "illegal_argument_exception",<br>
"reason": "Multiple entries with same key: [cloudtrail-2015.10.16][0], node[2yaILlgNTX24_lrlf77gIg], [P], v[25], s[STARTED], a[id=wtXiTTw9T4C9KHucOIQKGA]=org.elasticsearch.action.admin.indices.stats.CommonStats@7968034a and [cloudtrail-2015.10.16][0], node[2yaILlgNTX24_lrlf77gIg], [P], v[25], s[STARTED], a[id=wtXiTTw9T4C9KHucOIQKGA]=org.elasticsearch.action.admin.indices.stats.CommonStats@49422abd"<br>
},<br>
"status": 400<br>
}</p>
<p dir="auto">Any ideas?</p>