class Elastic::Nodes::TopHits
Public Instance Methods
handle_result(_raw, _formatter)
click to toggle source
# File lib/elastic/nodes/agg/top_hits.rb, line 12 def handle_result(_raw, _formatter) hits = _raw['hits'] ? prepare_hits(_raw['hits']['hits'], _formatter) : [] Elastic::Results::HitCollection.new(hits) end
render(_options = {})
click to toggle source
# File lib/elastic/nodes/agg/top_hits.rb, line 5 def render(_options = {}) hash = {} render_hit_options hash { 'top_hits' => hash } end