Snap.SearchResponse (Snap v0.14.0)

View Source

Represents the response from ElasticSearch's Search API.

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

Summary

Types

t()

@type t() :: %Snap.SearchResponse{
  aggregations: map() | nil,
  hits: Snap.Hits.t(),
  pit_id: map() | nil,
  scroll_id: String.t() | nil,
  shards: map(),
  suggest: map() | nil,
  timed_out: boolean(),
  took: integer()
}

Functions

new(response)