Get searchable snapshot statistics Generally available; Added in 7.10.0

GET /{index}/_searchable_snapshots/stats

All methods and paths for this operation:

GET /_searchable_snapshots/stats

GET /{index}/_searchable_snapshots/stats

Required authorization

  • Index privileges: manage
  • Cluster privileges: manage

Path parameters

  • index string | array[string] Required

    A comma-separated list of data streams and indices to retrieve statistics for.

Query parameters

  • level string

    Return stats aggregated at cluster, index or shard level

    Values are cluster, indices, or shards.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • stats object Required
    • total object Required
GET /{index}/_searchable_snapshots/stats
GET /my-index/_searchable_snapshots/stats 
resp = client.searchable_snapshots.stats( index="my-index", )
const response = await client.searchableSnapshots.stats({ index: "my-index", });
response = client.searchable_snapshots.stats( index: "my-index" )
$resp = $client->searchableSnapshots()->stats([ "index" => "my-index", ]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/my-index/_searchable_snapshots/stats"