elasticsearch-perl icon indicating copy to clipboard operation
elasticsearch-perl copied to clipboard

[DEPRECATION] the default number of shards will change from [5] to [1] in 7.0.0

Open ambs opened this issue 6 years ago • 5 comments

Hi I am new to ES, so not sure what this means. Nevertheless, hope this information can be useful. Also, would be happy to know how to disable this issue.

[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 - In request: {body => ["{\"index\":{\"_id\":\"18_151\"}}","{\"tit...

Thanks

ambs avatar Apr 12 '19 20:04 ambs

Hi @ambs

It seams that the module is outdated an does not support ES 7.0, I get deprecation errors and other failures all over the place.

The module hasn't been updated since years, so I hope that a new version will come soon.

carlosfrodriguez avatar Apr 12 '19 22:04 carlosfrodriguez

It is curious that I only get this when storing some documents, as for others I get no warnings...

ambs avatar Apr 13 '19 10:04 ambs

Well... provably it depends on your index settings.

carlosfrodriguez avatar Apr 15 '19 04:04 carlosfrodriguez

You will want to pass settings => { index => { number_of_shards => $num } } in the body when creating the index. If the new default is fine then you can just ignore the deprecation message and it will change when you upgrade to 7.0.0.

Grinnz avatar Apr 22 '19 17:04 Grinnz

We just released a dev version 7.30_1 supporting Elasticsearch 7.3 APIs. Please check this version and let me know, thanks!

ezimuel avatar Aug 05 '20 09:08 ezimuel