# Upgrade from 6.4 to 7.2

**URL:** <https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531>\
**Category:** Elasticsearch\
**Created:** [July 2, 2019, 2:27pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531 "2019-07-02T14:27:50Z")\
**Posts on this page:** 6\
**Page:** 3

<div class="post-metadata">

**Author:** ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)\
**Post date:** [July 3, 2019, 6:09pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/42 "2019-07-03T18:09:24Z")

</div>

Hi. Here it is. Our code seems not to have enabled refresh. What is wrong with the code above?

```
{
  "building-name-and-number-group-ie-2018-q4" : {
    "settings" : {
      "index" : {
        "refresh_interval" : "-1",
        "number_of_shards" : "1",
        "provided_name" : "building-name-and-number-group-ie-2018-q4",
        "creation_date" : "1562076352384",
        "number_of_replicas" : "1",
        "uuid" : "Gx-XwgXjQuGcI6tH37QCNw",
        "version" : {
          "created" : "7020099"
        }
      }
    }
  }
}
```

---

<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:** [July 3, 2019, 6:10pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/43 "2019-07-03T18:10:55Z")

</div>

I don't know yet but this definitely why it was not working.  
May be check the whole code, like the value of `indexName`....

---

<div class="post-metadata">

**Author:** ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)\
**Post date:** [July 3, 2019, 6:13pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/44 "2019-07-03T18:13:05Z")

</div>

Many thanks for all your help.  
Can we give a command in Kibana to set the refresh for a single index just to see if it works?

---

<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:** [July 3, 2019, 6:18pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/45 "2019-07-03T18:18:37Z")

</div>

Sure. See [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html)

```auto
PUT /building-name-and-number-group-ie-2018-q4/_settings
{
    "index" : {
        "refresh_interval" : "1s"
    }
}

```

Or run manually a refresh:

```auto
POST /building-name-and-number-group-ie-2018-q4/_refresh

```

---

<div class="post-metadata">

**Author:** ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)\
**Post date:** [July 3, 2019, 6:20pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/46 "2019-07-03T18:20:36Z")

</div>

Wow - IT WORKS.  
Thanks again for spending so much time on this.  
Greatly appreciate it.

---

<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:** [July 31, 2019, 6:31pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/47 "2019-07-31T18:31:03Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531.md?page=2)
