# Aggregation on Multisearch responses

**URL:** <https://discuss.elastic.co/t/aggregation-on-multisearch-responses/298862>\
**Category:** Elasticsearch\
**Created:** [March 4, 2022, 4:29pm UTC](https://discuss.elastic.co/t/aggregation-on-multisearch-responses/298862 "2022-03-04T16:29:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hbot](https://avatars.discourse-cdn.com/v4/letter/h/c77e96/32.png) [@hbot](https://discuss.elastic.co/u/hbot)\
**Post date:** [March 4, 2022, 4:29pm UTC](https://discuss.elastic.co/t/aggregation-on-multisearch-responses/298862/1 "2022-03-04T16:29:02Z")

</div>

Hi,

Is it possible to run an aggregation on multiple response sets returned by the multisearch API? As an example, say I execute 10 different queries through the multisearch API, and each query returns 10 documents with their individual score (in total i get back 10 responses, each with 10 documents). Is there any way to aggregate the scores of these 100 responses? For example, compute the mean of these scores?

I've implemented this logic in the application backend, but was just curious if this is possible directly in ES.

---

<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:** [April 1, 2022, 4:29pm UTC](https://discuss.elastic.co/t/aggregation-on-multisearch-responses/298862/2 "2022-04-01T16:29:59Z")

</div>

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