# Are runtime multi-fields possible?

**URL:** https://discuss.elastic.co/t/are-runtime-multi-fields-possible/330153
**Category:** Elasticsearch
**Tags:** runtime-fields
**Created:** [April 17, 2023, 4:29pm UTC](https://discuss.elastic.co/t/are-runtime-multi-fields-possible/330153 "2023-04-17T16:29:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nisow95612](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nisow95612](https://discuss.elastic.co/u/nisow95612)
#### Post date: [April 17, 2023, 4:29pm UTC](https://discuss.elastic.co/t/are-runtime-multi-fields-possible/330153/1 "2023-04-17T16:29:43Z")

</div>

Is it possible to have a runtime mapping with a subfield? I mean, so I get fields like "field.keyword" and "field.text" like [multi-fields](https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html), but at same time this is [runtime mapping](https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-templates.html#dynamic-mapping-runtime-fields) .

I like elasticsearch dynamic mapping, but I don't want to reindex every time it is detected wrong.  
I know I can use runtime mapping for that, but I want little more flexibility - I want autodetected fields to be immediately available both as keyword and as autodetected type so I have "field.keyword" and "field.autodetected" for new fields. Is it possible?

Elasticsearch gives me `unknown parameter [fields] on runtime field`

Thank you for hints how to do this.

---

<div class="post-metadata">

### Author: ![nisow95612](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nisow95612](https://discuss.elastic.co/u/nisow95612)
#### Post date: [April 17, 2023, 4:44pm UTC](https://discuss.elastic.co/t/are-runtime-multi-fields-possible/330153/2 "2023-04-17T16:44:48Z")

</div>

PS: I also want "field.keyword" and "field.autodetected" so I can search the index pattern for "autodetected" and see those runtime fields easily.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 15, 2023, 4:45pm UTC](https://discuss.elastic.co/t/are-runtime-multi-fields-possible/330153/3 "2023-05-15T16:45:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
