No MultiCountRequest API Object in Java

I want to perform multiple /_count API requests in one go.
There is a MultiSearchRequest that accepts multiple SearchRequests, but not an equivalent for CountRequests

Dependency:

compile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-high-level-client', version: '7.1.1'

Is there another object I should be using? Or is this just not possible?

Nevermind - I can see from this: Search API vs Count API performance? that actually _count is just a _search under the hood.

I'll stick with MultiSearchRequest and "size": 0 for now.

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