sudo-suhas/elastic-builder

Support to runtime_mappings

sanvir10 opened this issue · 2 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

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