I would like to know about the limit on the maximum number of documents per index

Hi
We are going to use elasticsearch 8.7. I would like to know if there is a limit on the number of documents to be stored in one index.
Is there a limit on the number of documents per index?
Or is there a limit on the number of documents per shard?
I looked for several articles, and I saw that there was a limit of 2 billion per shard, and now I saw that there is no limit. I wonder if there is a limit in version 8.7.
Link : Size your shards | Elasticsearch Guide [8.9] | Elastic
I wonder if this document means the limit of 2 billion per shard?

Thannks

Yes, that is the limit, although it is probably recommended to stay below that for most use cases and avoid very large shards. As an index can have many shards there is no fixed limit per index.

2 Likes

Agreed. And I'd start with 8.9.0 which comes with many improvements and also look at data streams if possible. It will make your life easier.

Note that this generally only applies if you are dealing with immutable data.

1 Like

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