Is it possible to send multiple requests to the _count API in one go? I saw this post Does count API support searching by multiple TERMs and return multiple COUNTs? but from what I can understand, the recommendation to use the multi-search API and set the search_type to count won't work since that it can only be set to either "dfs_query_then_fetch" or "query_then_fetch". Is that correct?
What I was hoping for is to be able to send a request like this to Elastic:
{"index": "logstash-"}
{"query": {"query_string": {"query": "destination_ip:"10.253.0.10""}}}
{"index": "logstash-"}
{"query": {"query_string": {"query": "destination_ip:"10.253.0.172""}}}
{"index": "logstash-"}
{"query": {"query_string": {"query": "destination_ip:"10.253.0.141""}}}
{"index": "logstash-"}
{"query": {"query_string": {"query": "destination_ip:"10.253.0.153""}}}
and receive as a response the counts for each query in an array or something similar.
Is this doable?