Class CountRequest


public class CountRequest extends CatRequestBase
Get a document count.

Get quick access to a document count for a data stream, an index, or an entire cluster. The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.

IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the count API.

See Also:
  • Field Details

  • Method Details

    • of

    • h

      public final List<String> h()
      List of columns to appear in the response. Supports simple wildcards.

      API name: h

    • index

      public final List<String> index()
      A comma-separated list of data streams, indices, and aliases used to limit the request. It supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all.

      API name: index

    • s

      public final List<String> s()
      List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting :asc or :desc as a suffix to the column name.

      API name: s