DWilches
DWilches

Reputation: 23035

Count number of documents in an ElasticSearch snapshot

How can I count the number of documents that are in a snapshot without restoring it?

I looked at the docs here and here, but they give me the number of shards and sizes, but not the number of documents.

Upvotes: 2

Views: 638

Answers (1)

Val
Val

Reputation: 217504

At the last Elastic{ON} Global event (Oct 13-15, 2020), Steve Kearns mentioned in the Elastic Stack keynote that a new feature called "searchable snapshots" (see PR #50239) was going to be released in an upcoming version (a beta version will be released in 7.10).

searchable snapshots

Cold and Frozen searchable snapshots were also further explained in two talks by Jason Tedor:

  • "Cost-effective data storage with data tiers"
  • "How we built this: Data tiering, searchable snapshots, and asynchronous search"

cold searchable snapshots frozen searchable snapshots

UPDATE:

7.10 got released on Nov 11th, 2020, and searchable snapshots are now available in beta.

Upvotes: 0

Related Questions