# Explanation/correction about Flat Settings

**URL:** <https://discuss.elastic.co/t/explanation-correction-about-flat-settings/150069>\
**Category:** Elasticsearch\
**Created:** [September 26, 2018, 6:19pm UTC](https://discuss.elastic.co/t/explanation-correction-about-flat-settings/150069 "2018-09-26T18:19:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casimir](https://avatars.discourse-cdn.com/v4/letter/c/f17d59/32.png) [@casimir](https://discuss.elastic.co/u/casimir)\
**Post date:** [September 26, 2018, 6:19pm UTC](https://discuss.elastic.co/t/explanation-correction-about-flat-settings/150069/1 "2018-09-26T18:19:34Z")

</div>

Following my understanding you have an error

When you do GET twitter/\_settings?flat\_settings=true

"index.provided\_name" : "twitter" must be "provided\_name" "twitter"

provided\_name is Under settings NOT Under index.

See : [https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html)

Flat Settings  
The flat\_settings flag affects rendering of the lists of settings. When flat\_settings flag is true settings are returned in a flat format:

GET twitter/\_settings?flat\_settings=true

Returns:

{  
"twitter" : {  
"settings": {  
"index.number\_of\_replicas": "1",  
"index.number\_of\_shards": "1",  
"index.creation\_date": "1474389951325",  
"index.uuid": "n6gzFZTgS664GUfx0Xrpjw",  
"index.version.created": ...,  
"index.provided\_name" : "twitter"  
}  
}  
}

When the flat\_settings flag is false settings are returned in a more human readable structured format:

GET twitter/\_settings?flat\_settings=false

Returns:

{  
"twitter" : {  
"settings" : {  
"index" : {  
"number\_of\_replicas": "1",  
"number\_of\_shards": "1",  
"creation\_date": "1474389951325",  
"uuid": "n6gzFZTgS664GUfx0Xrpjw",  
"version": {  
"created": ...  
},  
"provided\_name" : "twitter"  
}  
}  
}  
}

By default the flat\_settings is set to false.

---

<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:** [October 24, 2018, 6:19pm UTC](https://discuss.elastic.co/t/explanation-correction-about-flat-settings/150069/2 "2018-10-24T18:19:35Z")

</div>

Closed on October 24, 2018, 6:19pm UTC

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