class Ddr::Index::Response

Wraps an index query response

Public Instance Methods

docs() click to toggle source
# File lib/ddr/index/response.rb, line 9
def docs
  response["docs"]
end
facet_counts() click to toggle source
# File lib/ddr/index/response.rb, line 17
def facet_counts
  self["facet_counts"] || {}
end
facet_fields() click to toggle source
# File lib/ddr/index/response.rb, line 21
def facet_fields
  facet_counts["facet_fields"] || {}
end
num_found() click to toggle source
# File lib/ddr/index/response.rb, line 13
def num_found
  response["numFound"].to_i
end
response() click to toggle source
# File lib/ddr/index/response.rb, line 25
def response
  self["response"]
end