Suppress deprecation notice using 6.8

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

How did you create it?

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

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
}

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

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

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

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