How to limit search result size from each index in a multi index search query?

I want to query across multiple indices and for that I am currently providing the index names as comma separated values in the url. However, setting the size parameter limits the overall result size , whereas I want say n results from each index. I have tried _msearch api but I want some aggregations on the overall result set, but with _msearch I get multiple aggreagtions in result body( for each index provided) , is there any way to specify the limit of size of results fetched from each Index?

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