# Is the all\_fields limit include both keyword and text version of multi fields?

**URL:** <https://discuss.elastic.co/t/is-the-all-fields-limit-include-both-keyword-and-text-version-of-multi-fields/120973>\
**Category:** Elasticsearch\
**Created:** [February 22, 2018, 4:31am UTC](https://discuss.elastic.co/t/is-the-all-fields-limit-include-both-keyword-and-text-version-of-multi-fields/120973 "2018-02-22T04:31:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevan](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@trevan](https://discuss.elastic.co/u/trevan)\
**Post date:** [February 22, 2018, 4:31am UTC](https://discuss.elastic.co/t/is-the-all-fields-limit-include-both-keyword-and-text-version-of-multi-fields/120973/1 "2018-02-22T04:31:38Z")

</div>

The all\_fields has a limit of 1024 fields (per [https://github.com/elastic/elasticsearch/pull/26541](https://github.com/elastic/elasticsearch/pull/26541)) and I'm wondering if that limit counts the different versions of a multi field?

Say I have a field that has both a text version and a keyword version (such as the default logstash template). Will I hit the 1024 limit when I have 513 of those fields or when I have 1025 of those fields? At what point do I need to start setting the index.query.default\_field ([https://github.com/elastic/elasticsearch/pull/26320](https://github.com/elastic/elasticsearch/pull/26320))?

---

<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:** [March 22, 2018, 4:31am UTC](https://discuss.elastic.co/t/is-the-all-fields-limit-include-both-keyword-and-text-version-of-multi-fields/120973/2 "2018-03-22T04:31:44Z")

</div>

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