# Index level settings are wiped-out from v5.2.2

**URL:** <https://discuss.elastic.co/t/index-level-settings-are-wiped-out-from-v5-2-2/81975>\
**Category:** Elasticsearch\
**Created:** [April 11, 2017, 11:46am UTC](https://discuss.elastic.co/t/index-level-settings-are-wiped-out-from-v5-2-2/81975 "2017-04-11T11:46:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishore419](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kishore419](https://discuss.elastic.co/u/kishore419)\
**Post date:** [April 11, 2017, 11:46am UTC](https://discuss.elastic.co/t/index-level-settings-are-wiped-out-from-v5-2-2/81975/1 "2017-04-11T11:46:43Z")

</div>

Hello techies  
we are using elasticsearch 2.1.0(centos7) servers on production.  
we want to upgrade to v5.2.2 very soon.  
Following parameters are using while creating new indexes.  
index.translog.flush\_threshold\_ops: 100000  
index.number\_of\_shards: 5  
index.number\_of\_replicas: 1  
index.refresh\_interval: 60s  
Q: index.translog.flush\_threshold\_ops option is deprecated from v5.0.0  
can you please suggest alternative for above?

---

<div class="post-metadata">

**Author:** ![Prashant\_Agrawal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_agrawal/32/74982_2.png) [@Prashant\_Agrawal](https://discuss.elastic.co/u/Prashant_Agrawal)\
**Post date:** [April 11, 2017, 11:51am UTC](https://discuss.elastic.co/t/index-level-settings-are-wiped-out-from-v5-2-2/81975/2 "2017-04-11T11:51:25Z")

</div>

You can update those settings as below:

```
PUT /twitter/_settings
{
    "index" : {
        "translog.flush_threshold_ops" : 100000
    }
}

```

More over you can refer the docs here.  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html)

---

<div class="post-metadata">

**Author:** ![kishore419](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kishore419](https://discuss.elastic.co/u/kishore419)\
**Post date:** [April 12, 2017, 3:43am UTC](https://discuss.elastic.co/t/index-level-settings-are-wiped-out-from-v5-2-2/81975/3 "2017-04-12T03:43:43Z")

</div>

Following error observed while applying threshold settings.

{  
"error": {  
"root\_cause": [  
{  
"type": "illegal\_argument\_exception",  
"reason": "unknown setting [index.translog.flush\_threshold\_ops] did you mean [index.translog.flush\_threshold\_size]?"  
}  
],  
"type": "illegal\_argument\_exception",  
"reason": "unknown setting [index.translog.flush\_threshold\_ops] did you mean [index.translog.flush\_threshold\_size]?"  
},  
"status": 400  
}

i want to use index level setting using JAVA API

---

<div class="post-metadata">

**Author:** ![Prashant\_Agrawal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_agrawal/32/74982_2.png) [@Prashant\_Agrawal](https://discuss.elastic.co/u/Prashant_Agrawal)\
**Post date:** [April 12, 2017, 12:22pm UTC](https://discuss.elastic.co/t/index-level-settings-are-wiped-out-from-v5-2-2/81975/4 "2017-04-12T12:22:43Z")

</div>

`The index.translog.[quote="kishore419, post:3, topic:81975"]  
"reason": "unknown setting [index.translog.flush\_threshold\_ops] did you mean

See here : [https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking\_50\_settings\_changes.html#\_translog\_settings](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_settings_changes.html#_translog_settings)

`The index.translog.flush_threshold_ops setting is not supported anymore. In order to control flushes based on the transaction log growth use index.translog.flush_threshold_size instead.`

---

<div class="post-metadata">

**Author:** ![kishore419](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kishore419](https://discuss.elastic.co/u/kishore419)\
**Post date:** [April 13, 2017, 3:37am UTC](https://discuss.elastic.co/t/index-level-settings-are-wiped-out-from-v5-2-2/81975/5 "2017-04-13T03:37:01Z")

</div>

it works for me  
thanks prashant.

---

<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:** [May 11, 2017, 3:37am UTC](https://discuss.elastic.co/t/index-level-settings-are-wiped-out-from-v5-2-2/81975/6 "2017-05-11T03:37:42Z")

</div>

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