# Reconfigure to default \`max\_num\_segments\`

**URL:** https://discuss.elastic.co/t/reconfigure-to-default-max-num-segments/317186
**Category:** Elasticsearch
**Created:** [October 21, 2022, 10:33am UTC](https://discuss.elastic.co/t/reconfigure-to-default-max-num-segments/317186 "2022-10-21T10:33:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)
#### Post date: [October 21, 2022, 10:33am UTC](https://discuss.elastic.co/t/reconfigure-to-default-max-num-segments/317186/1 "2022-10-21T10:33:13Z")

</div>

Hi,

according documentation:

**`max_num_segments`**  
**(Optional, integer) The number of segments to merge to. To fully merge indices, set it to `1`.**  
**Defaults to checking if a merge needs to execute. If so, executes it.**

Once done POST /myindex/\_forcemerge?max\_num\_segments=1, how can I reset it to default?

Thank you,  
Regards

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [October 21, 2022, 10:37am UTC](https://discuss.elastic.co/t/reconfigure-to-default-max-num-segments/317186/2 "2022-10-21T10:37:27Z")

</div>

That parameter only applies to the forcemerge you are performing, so there is nothing to change back.

---

<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: [November 18, 2022, 10:38am UTC](https://discuss.elastic.co/t/reconfigure-to-default-max-num-segments/317186/3 "2022-11-18T10:38:05Z")

</div>

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