Scrypath.SearchResult.Facets (scrypath v0.3.3)

Copy Markdown View Source

Facet counts and stats decoded from a Meilisearch search response.

Meilisearch wire keyElixir field / notes
facetDistributiondistribution — map of facet field → list of buckets
facetStatsstats — map of facet field → summary map (min / max for numerics)
bucket value + countScrypath.SearchResult.Facets.Bucketvalue and count

Summary

Types

t()

@type t() :: %Scrypath.SearchResult.Facets{
  declared_order: [atom()],
  distribution: %{required(atom()) => [Scrypath.SearchResult.Facets.Bucket.t()]},
  stats: %{required(atom()) => map()}
}