elastic-builder icon indicating copy to clipboard operation
elastic-builder copied to clipboard

Support to runtime_mappings

Open sanvir10 opened this issue 3 years ago • 1 comments

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

sanvir10 avatar Aug 24 '21 18:08 sanvir10

This is not supported as of now. PRs are welcome.

sudo-suhas avatar Aug 29 '21 05:08 sudo-suhas

:tada: This issue has been resolved in version 2.28.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Mar 10 '24 09:03 github-actions[bot]