View Source Snap.Hits (Snap v0.7.0)

Represents the hits dictionary returned from an ElasticSearch Search API response.

Implements Enumerable, so you can iterate directly over the struct.

Link to this section Summary

Link to this section Types

@type t() :: %Snap.Hits{
  hits: [Snap.Hit.t()],
  max_score: float() | nil,
  total: map() | integer()
}

Link to this section Functions