Closed xinghui closed 4 months ago
Hello!
This is indeed not handled properly because the specification doesn't give any pointer to the default type that could handle the string shortcut. See: https://github.com/elastic/elasticsearch-specification/blob/d555c1aba5b795b31dda7e6fde172c860284949b/specification/_types/Scripting.ts#L87C1-L89C51
I would recommend for now that you use an extended syntax like:
{
...
"script": {"source": "params.avg_field1 > 50000"}
...
}
That should be enough pointers for the script not to disappear.
ok!
I accept, Thanks for you response.
missing
script
when unmarshalJSONBucketSelectorAggregation
input dsl
output dsl: