Aggregation query works with search, but not with msearch

I am trying to troubleshoot the following observation:

Following code works as expected:

Elasticsearch::Model.client.search search_type: 'count', index:
target_indices, body: query

Response:

{"took"=>2, "timed_out"=>false, "_shards"=>{"total"=>2, "successful"=>2,
"failed"=>0}, "hits"=>{"total"=>6, "max_score"=>0.0, "hits"=>[]},
"aggregations"=>{"recent"=>{"doc_count"=>3,
"searches"=>{"buckets"=>[{"key"=>"user-1", "doc_count"=>3}]}}}}

However, when using the above in an msearch, the response is not useful:

Elasticsearch::Model.client.msearch body: [{ search_type: 'count', index:
target_indices, search: query }]

Response:

{"responses"=>[{"took"=>0, "timed_out"=>false, "_shards"=>{"total"=>2,
"successful"=>2, "failed"=>0}, "hits"=>{"total"=>6, "max_score"=>0.0,
"hits"=>[]}}]}


What am I missing?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2fef8c41-7232-43e6-8632-9e2e5058240d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.