# Im trying to update the elastic version from 5.x to 7.17.0

**URL:** <https://discuss.elastic.co/t/im-trying-to-update-the-elastic-version-from-5-x-to-7-17-0/358221>\
**Category:** Elasticsearch\
**Created:** [April 25, 2024, 1:37pm UTC](https://discuss.elastic.co/t/im-trying-to-update-the-elastic-version-from-5-x-to-7-17-0/358221 "2024-04-25T13:37:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varun\_Shetty](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varun_shetty/32/133852_2.png) [@Varun\_Shetty](https://discuss.elastic.co/u/Varun_Shetty)\
**Post date:** [April 25, 2024, 1:37pm UTC](https://discuss.elastic.co/t/im-trying-to-update-the-elastic-version-from-5-x-to-7-17-0/358221/1 "2024-04-25T13:37:57Z")

</div>

import org.elasticsearch.search.aggregations.bucket.significant.SignificantTerms; for this import im getting the error in the significant.what will be the replacement for this import ?

```auto
SignificantTerms agg = response.get(name);

            JSONArray j_entries = new JSONArray();
            j_aggregation.put("buckets", j_entries);
            for (SignificantTerms.Bucket entry : agg) {
                JSONObject j_entry = new JSONObject();
                j_entry.put("term", entry.getKey());
                j_entry.put("value", entry.getDocCount());
                j_entries.put(j_entry);
            }

```

this is the implementation we have used
