elastic-builder
elastic-builder copied to clipboard
Support to runtime_mappings
In the doc page i can't see if this support add runtime_mappings in the query body:
Example:
{
"runtime_mappings": {
"duration": {
"type": "long",
"script": {
"source": "emit(doc['measures.end'].value - doc['measures.start'].value);"
}
}
},
"aggs": {
"duration_stats": {
"stats": {
"field": "duration"
}
}
}
}
Ref: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/runtime-search-request.html
This is not supported as of now. PRs are welcome.
:tada: This issue has been resolved in version 2.28.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: