# `Zvex.Collection.Stats`
[🔗](https://github.com/edlontech/zvex/blob/main/lib/zvex/collection/stats.ex#L1)

Collection statistics returned by `Zvex.Collection.stats/1`.

## Fields

- `:doc_count` — total number of documents in the collection.
- `:indexes` — list of index status maps, each containing:
  - `:name` — the indexed field name.
  - `:completeness` — a float between `0.0` and `1.0` indicating how
    much of the data has been indexed (reaches `1.0` after `optimize/1`).

# `t`

```elixir
@type t() :: %Zvex.Collection.Stats{
  doc_count: non_neg_integer(),
  indexes: [%{name: String.t(), completeness: float()}]
}
```

Collection statistics snapshot.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
