I have one query
_search with four separated nested terms aggregation and filters in the aggregations, this query is retrieving data in about 2 seconds when a specific term is searched.
I splitted the four queries into four different requests in a
_msearch, each one with an aggregation. The time has reduced to about 25% of the previous one with all aggregations in a single request
Regarding it, my question is, does aggregations in elasticsearch runs in parallel in the _search endpoint?
My guess is that when running the aggregations in a
_msearch it was done in parallel and that is the reason to be faster. Am I right?