View Source Snap.SearchResponse (Snap v0.9.0)
Represents the response from ElasticSearch's Search API.
Implements Enumerable
, so you can iterate directly over the struct.
Summary
Types
@type t() :: %Snap.SearchResponse{ aggregations: %{required(String.t()) => Snap.Aggregation.t()} | nil, hits: Snap.Hits.t(), pit_id: map() | nil, scroll_id: String.t() | nil, shards: map(), suggest: Snap.Suggests.t() | nil, timed_out: boolean(), took: integer() }