# What is a good number of fields to have in an index?

**URL:** <https://discuss.elastic.co/t/what-is-a-good-number-of-fields-to-have-in-an-index/290618>\
**Category:** Elasticsearch\
**Created:** [December 1, 2021, 2:26am UTC](https://discuss.elastic.co/t/what-is-a-good-number-of-fields-to-have-in-an-index/290618 "2021-12-01T02:26:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![DineshNaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dineshnaik/32/89308_2.png) [@DineshNaik](https://discuss.elastic.co/u/DineshNaik)\
**Post date:** [December 1, 2021, 7:53am UTC](https://discuss.elastic.co/t/what-is-a-good-number-of-fields-to-have-in-an-index/290618/4 "2021-12-01T07:53:19Z")

</div>

@sidharth_vijayakumar  
An index can have many documents (similar in nature) and every document can have a certain number of fields.

An index can be divided into multiple shards . There is a limitation of 2.14 Billion docs per shard at lucene level but you should not go beyond 1 Billion documents at any point ( in fact best practice is to have a shard of 20-30 GB in size).

If you use mapping then the default limit of index.mapping.total\_fields.limit is 1000 in ES .

Note: this limitation can be changed if needed (not recommended) and is for a document. That means one document should not have more than 1000 fields in your index.

You can refer [this](https://discuss.elastic.co/t/implications-of-large-number-of-fields-in-a-document/113308) post to get an idea.

---

_[View the full topic](https://discuss.elastic.co/t/what-is-a-good-number-of-fields-to-have-in-an-index/290618)._
