Aggregation query works with search, but not with msearch

I am trying to troubleshoot the following observation:

Following code works as expected: search_type: 'count', index:
target_indices, body: query


{"took"=>2, "timed_out"=>false, "_shards"=>{"total"=>2, "successful"=>2,
"failed"=>0}, "hits"=>{"total"=>6, "max_score"=>0.0, "hits"=>[]},
"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 }]


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

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
To view this discussion on the web visit
For more options, visit