Datehistogram Composite Agg Sort Error in new Java Client

I am getting error when giving sort in Datehistogram composite agg

[es/search] failed: [x_content_parse_exception] [1:186] [composite] failed to parse field [sources]

my code as below

Map<String, CompositeAggregationSource> map = new HashMap<>();
                    new CompositeAggregationSource.Builder().dateHistogram(d->d

            SearchResponse<Void> response = -> b
                            .aggregations("date", t->t

How to give sort in composite Agg Datehistogram ?

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