Upgrading to Elasticsearch 5.6.2
For Elasticsearch 5.x, the existing indexes and templates need to upgraded. For more information, see:
There are a number of template changes in Elasticsearch 5.2, most notably around string type handling, that may cause issues when upgrading. If you are upgrading from Elasticsearch 2.x to Elasticsearch 5.6.2, you will need to re-index. For information on the type mapping changes, see the section called “Type Mapping Changes”.
For more information, see Upgrade Elasticsearch.