Sha256: df03994e97bd4b42db338a0ff393195e76b1ea43cd319e660c06b5a9dfefc7d1
Contents?: true
Size: 682 Bytes
Versions: 8
Compression:
Stored size: 682 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, Settings.FIELDS.UNIQUE_KEY, 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
8 entries across 8 versions & 1 rubygems