# Maximum number of fields in an index

**URL:** <https://discuss.elastic.co/t/maximum-number-of-fields-in-an-index/134978>\
**Category:** Elasticsearch\
**Created:** [June 7, 2018, 12:07pm UTC](https://discuss.elastic.co/t/maximum-number-of-fields-in-an-index/134978 "2018-06-07T12:07:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paddy\_Mahadeva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paddy_mahadeva/32/44225_2.png) [@Paddy\_Mahadeva](https://discuss.elastic.co/u/Paddy_Mahadeva)\
**Post date:** [June 7, 2018, 12:07pm UTC](https://discuss.elastic.co/t/maximum-number-of-fields-in-an-index/134978/1 "2018-06-07T12:07:58Z")

</div>

Hi,

I am using elasticsearch as my primary database (yes, I know its not a great idea, but I have a good use case for the same). My problem is that I am at the threshold of cross the 1000 fields limit for my index. Most of my fields need not be indexed, I do not search, sort or do any action using them, i just need to store them.

Is there anyway I can add more fields without them getting affecting my search performance, or me hitting the 1000 field limit? Most of my fields can be maintained in nested structure. Can i use nested\_fields or nested\_objects to solve this problem of 1000 field limit? I did not understand the difference between both.

Can someone propose a solution?

Thanks  
Paddy

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 7, 2018, 12:45pm UTC](https://discuss.elastic.co/t/maximum-number-of-fields-in-an-index/134978/2 "2018-06-07T12:45:31Z")

</div>

I believe that if you put all the non searchable fields within an inner object, you can simply disable the whole object with [https://www.elastic.co/guide/en/elasticsearch/reference/current/enabled.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/enabled.html)

HTH

---

<div class="post-metadata">

**Author:** ![Paddy\_Mahadeva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paddy_mahadeva/32/44225_2.png) [@Paddy\_Mahadeva](https://discuss.elastic.co/u/Paddy_Mahadeva)\
**Post date:** [June 15, 2018, 11:08am UTC](https://discuss.elastic.co/t/maximum-number-of-fields-in-an-index/134978/3 "2018-06-15T11:08:21Z")

</div>

Yep. That solved my problem.

Thanks a lot!

---

<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:** [July 13, 2018, 11:08am UTC](https://discuss.elastic.co/t/maximum-number-of-fields-in-an-index/134978/4 "2018-07-13T11:08:33Z")

</div>

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