View Source Snap.SearchResponse (Snap v0.7.0)

Represents the response from ElasticSearch's Search API.

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

Link to this section Summary

Link to this section 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()
}

Link to this section Functions