Sha256: a857fb930fd9517ae44fa082d7cd9548445e64087d0d659a4635e68297e47912
Contents?: true
Size: 670 Bytes
Versions: 4
Compression:
Stored size: 670 Bytes
Contents
# frozen_string_literal: true module Geoblacklight module Relation class Descendants def initialize(id, repository) @search_id = id @repository = repository end def create_search_params { fq: "#{Settings.FIELDS.SOURCE}:#{@search_id}", fl: [Settings.FIELDS.TITLE, 'layer_slug_s', Settings.FIELDS.GEOM_TYPE] } end def execute_query @repository.connection.send_and_receive( @repository.blacklight_config.solr_path, params: create_search_params ) end def results response = execute_query response['response'] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems