Sha256: 34384c9bf5959535083ed7388d1aa4a5fa7edcd5d15f97434129e865612fa635
Contents?: true
Size: 581 Bytes
Versions: 26
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true class Blacklight::Solr::Response::Group include Blacklight::Solr::Response::PaginationMethods attr_reader :key, :group, :response def initialize key, group, response @key = key @group = group @response = response end def doclist group[:doclist] end # short cut to response['numFound'] def total doclist[:numFound].to_s.to_i end def start doclist[:start].to_s.to_i end def docs doclist[:docs].map { |doc| SolrDocument.new(doc, response) } end def field response.group_field end end
Version data entries
26 entries across 26 versions & 2 rubygems