#response ⇒ Object

Instance Method Details

#aggregations(name = nil) ⇒ Hash

Returns a single or all aggregations returned by ElasticSearch, depending
on whether or not a name is specified. If no name is specified, the raw
aggregation hash is simply returned. Contrary, if a name is specified, only
this aggregation is returned. Moreover, if a name is specified and the
aggregation includes a buckets section, a post-processed aggregation hash
is returned.

#scope ⇒ Object

Builds and returns a scope for the array of ids in the current result set
returned by ElasticSearch, including the eager load, preload and includes
associations, if specified. A scope is eg an ActiveRecord::Relation,
depending on the ORM you're using.