# Elasticsearch 7.5 upgrade

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-5-upgrade/230165>\
**Category:** Elasticsearch\
**Created:** [April 28, 2020, 12:22pm UTC](https://discuss.elastic.co/t/elasticsearch-7-5-upgrade/230165 "2020-04-28T12:22:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uk300](https://avatars.discourse-cdn.com/v4/letter/u/a8b319/32.png) [@uk300](https://discuss.elastic.co/u/uk300)\
**Post date:** [April 28, 2020, 12:22pm UTC](https://discuss.elastic.co/t/elasticsearch-7-5-upgrade/230165/1 "2020-04-28T12:22:59Z")

</div>

Hi,

I am trying to upgrade our application to use elasticsearch 7.5.1 from 6.x. Our application updates a date field using painless script by calling updateByQuery on the RestHighLevelClient.

In elasticsearch the field type is date and the format is 'strict\_date\_hour\_minute\_second\_millis'. When we are using painless script to update the field , value 'Z' is added and the update fails because the painless script date format is not matching the field format in ES.

I can fix the issue by passing date as string in the painless script rather than LocalDateTime object. I am just wondering is there any other way to fix this issue? or Am I doing something wrong?

Thank you  
Uthayam

---

<div class="post-metadata">

**Author:** ![gabriel\_tessier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel_tessier/32/27911_2.png) [@gabriel\_tessier](https://discuss.elastic.co/u/gabriel_tessier)\
**Post date:** [April 28, 2020, 1:43pm UTC](https://discuss.elastic.co/t/elasticsearch-7-5-upgrade/230165/2 "2020-04-28T13:43:37Z")

</div>

Hi @uk300,

Yes there's other solution, one of them depends on how much data you have is reindexing the data of your index and use ingest to reformat your date.

Here the doc for reindexing  
[https://www.elastic.co/guide/en/elasticsearch/reference/7.6/reindex-upgrade-inplace.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/reindex-upgrade-inplace.html)  
and for ingest:  
[https://www.elastic.co/guide/en/elasticsearch/reference/7.6/ingest.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/ingest.html)

---

<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 26, 2020, 1:45pm UTC](https://discuss.elastic.co/t/elasticsearch-7-5-upgrade/230165/3 "2020-05-26T13:45:18Z")

</div>

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