2014-04-08 27 views

回答

1

可以使用["fieldname"]符号做到这一点:

{ 
    "script" : "ctx._source[\"@timestamp\"] = 20120101000000" 
}' 

put方法:

{ 
    "script" : "ctx._source.put(\"@timestamp\", 20120101000001)" 
} 
+0

放....嘿嘿。试过“添加”之前,但没有尝试更多的“标准动词”。谢谢! –