As a codebased contribution to this answer, the following query may be used:
POST /index/type/100100471/_update
{
"doc" : {
"yourProperty" : 10000
}
}
This query updates yourProperty
property only.
As a result, this response appears:
{
"_index": "index",
"_type": "type",
"_id": "100100471",
"_version": 1,
"_shards": {
"total": 0,
"successful": 1,
"failed": 0
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…