list-doc-counts

Estimated time to read: 1 minute

Experimental-feature notice

This page discusses experimental features. Experimental features are still in progress, and you may encounter bugs or unexpected behavior when using them.

If you experience an issue or want to know more about this feature's status, reach out to us at Era Software.

Acquisition notice

In October 2022, ServiceNow acquired Era Software. The documentation on this site is no longer maintained and is intended for existing Era Software users only.

To get the latest information about ServiceNow's observability solutions, visit their website and documentation.

This command lists document counts by index.

Warning

This command requires read access in order to list document counts.

usage: eractl list-doc-counts [-h] [--url URL] [--key KEY] [-w]

optional arguments:
  -h, --help   show this help message and exit
  --url URL    EraSearch URL, set via environment with ERACTL_URL (default: http://localhost:9200)
  --key KEY    EraSearch API key, set via environment with ERACTL_API_KEY (default: None)
  -w, --watch  Watch output and show a diff of changes (default: False)

To run:

eractl list-doc-counts --url https://erasearch.example.com --key ******

Or to pass arguments from the environment:

export ERACTL_URL="https://erasearch.example.com"
export ERACTL_API_KEY="******"
eractl list-doc-counts

Watch for changes in output with -w:

eractl list-doc-counts -w

Last update: August 7, 2023