class ROM::Elasticsearch::Relation::Loaded

Materialized index data

@api public

Public Instance Methods

response() click to toggle source

Return raw response from the ES client

@return [Hash]

@api public

# File lib/rom/elasticsearch/relation/loaded.rb, line 24
def response
  source.dataset.options[:response]
end
total_hits() click to toggle source

Return total number of hits

@return [Integer]

@api public

# File lib/rom/elasticsearch/relation/loaded.rb, line 15
def total_hits
  response["hits"]["total"]["value"]
end