Facet counts and stats decoded from a Meilisearch search response.
| Meilisearch wire key | Elixir field / notes |
|---|---|
facetDistribution | distribution — map of facet field → list of buckets |
facetStats | stats — map of facet field → summary map (min / max for numerics) |
| bucket value + count | Scrypath.SearchResult.Facets.Bucket — value and count |
Summary
Types
@type t() :: %Scrypath.SearchResult.Facets{ declared_order: [atom()], distribution: %{required(atom()) => [Scrypath.SearchResult.Facets.Bucket.t()]}, stats: %{required(atom()) => map()} }