Sha256: 34a63759664fa221ae908ebf7fdc2ba39f610bfdebc1bb97f699d4e494850541
Contents?: true
Size: 584 Bytes
Versions: 31
Compression:
Stored size: 584 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
31 entries across 31 versions & 1 rubygems