# Num of segments in index

**URL:** <https://discuss.elastic.co/t/num-of-segments-in-index/18438>\
**Category:** Elasticsearch\
**Created:** [July 2, 2014, 12:17pm UTC](https://discuss.elastic.co/t/num-of-segments-in-index/18438 "2014-07-02T12:17:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sxam](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sxam](https://discuss.elastic.co/u/sxam)\
**Post date:** [July 2, 2014, 12:17pm UTC](https://discuss.elastic.co/t/num-of-segments-in-index/18438/1 "2014-07-02T12:17:48Z")

</div>

Hi,  
While optimizing it's pretty easy to determine a number of segments by executing Optimize command with max\_num\_segments parameter.  
My question is about indexing prior to optimizing, though.  
I checked the [http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/index-modules-merge.html#tiered](http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/index-modules-merge.html#tiered) section and I still couldn't find - how do I control the number of segments during indexing? Is there a simple way to tell to ES that I am willing to pay with indexing time and frequent merges but keep number of segments below 10, for example?

Thanks in advance,

Maxim

---

<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 6, 2017, 1:18am UTC](https://discuss.elastic.co/t/num-of-segments-in-index/18438/2 "2017-07-06T01:18:25Z")

</div>


