Snap.Hits (Snap v0.16.0)

Copy Markdown View Source

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

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

Summary

Types

t()

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

Functions

new(response)