JSON Input
A text field where you can add specific JSON-formatted properties to merge with the aggregation definition, as in the following example:
乘法:
{ "script" : "doc['grade'].value * 1.2" }
截取:
{ "script" : "_value.contains('AL')?'HUAWEI':_value.substring(0,8)" }
数值四舍五入:
{ "script" : "Math.round(_value)"}