# Suppress deprecation notice using 6.8

**URL:** <https://discuss.elastic.co/t/suppress-deprecation-notice-using-6-8/226494>\
**Category:** Elasticsearch\
**Created:** [April 4, 2020, 3:28am UTC](https://discuss.elastic.co/t/suppress-deprecation-notice-using-6-8/226494 "2020-04-04T03:28:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nages](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nages/32/46943_2.png) [@nages](https://discuss.elastic.co/u/nages)\
**Post date:** [April 4, 2020, 3:28am UTC](https://discuss.elastic.co/t/suppress-deprecation-notice-using-6-8/226494/1 "2020-04-04T03:28:36Z")

</div>

I created a brand new index, the following deprecation notice is displayed. How to suppress it .  
Version : 6.8.8

> #! Deprecation: the default number of shards will change from [5] to [1] in 7.0.0; if you wish to continue using the default of [5] shards, you must manage this on the create index request or with an index template

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 4, 2020, 3:47am UTC](https://discuss.elastic.co/t/suppress-deprecation-notice-using-6-8/226494/2 "2020-04-04T03:47:14Z")

</div>

How did you create it?

> you must manage this on the create index request or with an index template

---

<div class="post-metadata">

**Author:** ![nages](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nages/32/46943_2.png) [@nages](https://discuss.elastic.co/u/nages)\
**Post date:** [April 4, 2020, 8:43am UTC](https://discuss.elastic.co/t/suppress-deprecation-notice-using-6-8/226494/3 "2020-04-04T08:43:12Z")

</div>

I applied simple index create request

PUT ecommercesite/product/1  
{  
"product\_name": "Men High Performance Fleece Jacket",  
"description": "Best Value. All season fleece jacket",  
"unit\_price": 79.99  
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 4, 2020, 10:13am UTC](https://discuss.elastic.co/t/suppress-deprecation-notice-using-6-8/226494/4 "2020-04-04T10:13:57Z")

</div>

As the error message says, you need to use an index template.

---

<div class="post-metadata">

**Author:** ![nages](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nages/32/46943_2.png) [@nages](https://discuss.elastic.co/u/nages)\
**Post date:** [April 4, 2020, 11:34am UTC](https://discuss.elastic.co/t/suppress-deprecation-notice-using-6-8/226494/5 "2020-04-04T11:34:42Z")

</div>

sounds like i need to use to index template all the time in 6.8 to suppress this deprecation , by default?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 4, 2020, 12:14pm UTC](https://discuss.elastic.co/t/suppress-deprecation-notice-using-6-8/226494/6 "2020-04-04T12:14:07Z")

</div>

Yes. One Index template or creating manually the index by providing index settings will remove the deprecated message.

---

<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 2, 2020, 12:14pm UTC](https://discuss.elastic.co/t/suppress-deprecation-notice-using-6-8/226494/7 "2020-05-02T12:14:16Z")

</div>

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