# Max items on runtime fields

**URL:** <https://discuss.elastic.co/t/max-items-on-runtime-fields/344307>\
**Category:** Elasticsearch\
**Tags:** runtime-fields\
**Created:** [October 3, 2023, 12:31pm UTC](https://discuss.elastic.co/t/max-items-on-runtime-fields/344307 "2023-10-03T12:31:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lipig](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@lipig](https://discuss.elastic.co/u/lipig)\
**Post date:** [October 3, 2023, 12:31pm UTC](https://discuss.elastic.co/t/max-items-on-runtime-fields/344307/1 "2023-10-03T12:31:13Z")

</div>

Hi Elastic people,  
A curiosity... I emit more than 100 values ​​in the runtime fields, and I saw in the forum that 100 was the maximum.  
I saw this thread

> [@Max emits for creating runtime field](https://discuss.elastic.co/t/max-emits-for-creating-runtime-field/275042):
>
> Hello, I'm trying to create a runtime field which takes a multi-value long field and converts it to a multi-value string field. This way I can perform a regex search on it. The following search works, but only for fields only with 100 values or less: {"runtime\_mappings": { "numbers\_to\_string": { "type": "keyword", "script": { "source": "if (doc.containsKey('numbers')) {int count = 0; for (item in doc['numbers']) { if (count \< 100) {emit(item.toString()); count++} }}" …

from 2021 and wanted to ask if there have been any updates. That is, would it have been modified to be configurable or the same limitation remain?

Thanks!

---

<div class="post-metadata">

**Author:** ![lipig](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@lipig](https://discuss.elastic.co/u/lipig)\
**Post date:** [October 5, 2023, 6:16am UTC](https://discuss.elastic.co/t/max-items-on-runtime-fields/344307/2 "2023-10-05T06:16:31Z")

</div>

Sorry, I am working with Elasticsearch 7.16 and my curiosity is because Nik Everett wrote ·  
_" The emit limit isn't configurable now but it's worth talking with the folks who wrote it to see if it should be. Or if we should bump the limit up."_ Thanks!

---

<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:** [November 2, 2023, 6:17am UTC](https://discuss.elastic.co/t/max-items-on-runtime-fields/344307/3 "2023-11-02T06:17:14Z")

</div>

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