# Empty aggregations, ES 6.7 nodes, RHLC upgraded from v6.3 to v6.8

**URL:** <https://discuss.elastic.co/t/empty-aggregations-es-6-7-nodes-rhlc-upgraded-from-v6-3-to-v6-8/337062>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [June 28, 2023, 9:37am UTC](https://discuss.elastic.co/t/empty-aggregations-es-6-7-nodes-rhlc-upgraded-from-v6-3-to-v6-8/337062 "2023-06-28T09:37:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hi\_Jonk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hi_jonk/32/105695_2.png) [@Hi\_Jonk](https://discuss.elastic.co/u/Hi_Jonk)\
**Post date:** [June 28, 2023, 9:37am UTC](https://discuss.elastic.co/t/empty-aggregations-es-6-7-nodes-rhlc-upgraded-from-v6-3-to-v6-8/337062/1 "2023-06-28T09:37:50Z")

</div>

As part of a rolling upgrade, I am trying upgrade my high level client from v6.3 to v6.8 while talking to v6.7 nodes. Search is working fine, however, the aggregation queries we were using with the v6.3 client have stopped working after upgrading to the v6.8 client.

Example query:

```auto
SearchRequest {
        searchType = QUERY_THEN_FETCH, 
        indices = [indexName], 
        indicesOptions = IndicesOptions[ignore_unavailable = false, allow_no_indices = true, expand_wildcards_open = true, expand_wildcards_closed = false, allow_aliases_to_multiple_indices = true, forbid_closed_indices = true, ignore_aliases = false, ignore_throttled = true], 
        types = [], 
        routing = 'null', 
        preference = 'null', 
        requestCache = null, 
        scroll = null, 
        maxConcurrentShardRequests = 0, 
        batchedReduceSize = 512, 
        preFilterShardSize = 128, 
        allowPartialSearchResults = null, 
        localClusterAlias = null, 
        getOrCreateAbsoluteStartMillis = -1, 
        source = 
        {
            "query": {
                "range": {
                    "createdOn": {
                        "from": "1687338000000",
                        "to": "1687942807993",
                        "include_lower": true,
                        "include_upper": true,
                        "boost": 1.0
                    }
                }
            },
            "aggregations": {
                "composite_aggregation": {
                    "composite": {
                        "size": 2000,
                        "sources": [{
                            "aggregation_over_time": {
                                "date_histogram": {
                                    "field": "createdOn",
                                    "missing_bucket": false,
                                    "value_type": "date",
                                    "order": "asc",
                                    "interval": "1h"
                                }
                            }
                        }]
                    },
                    "aggregations": {
                        "childAggregation": {
                            "terms": {
                                "field": "field1.keyword",
                                "size": 10,
                                "min_doc_count": 1,
                                "shard_min_doc_count": 0,
                                "show_term_doc_count_error": false,
                                "order": [{
                                    "_count": "desc"
                                }, {
                                    "_key": "asc"
                                }]
                            },
                            "aggregations": {
                                "childAggregation": {
                                    "terms": {
                                        "field": "field2.keyword",
                                        "size": 10,
                                        "min_doc_count": 1,
                                        "shard_min_doc_count": 0,
                                        "show_term_doc_count_error": false,
                                        "order": [{
                                            "_count": "desc"
                                        }, {
                                            "_key": "asc"
                                        }]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }

```

We're using nested aggregations since multi terms weren't available for 6.7 nodes.

I'm assuming there are some parameters that were introduced in the 6.8 client that we aren't setting correctly. Any help would be appreciated.

---

<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 26, 2023, 9:38am UTC](https://discuss.elastic.co/t/empty-aggregations-es-6-7-nodes-rhlc-upgraded-from-v6-3-to-v6-8/337062/2 "2023-07-26T09:38:00Z")

</div>

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