Sha256: cf38b2ac7532e0ff7dad0d07007a74f227e98d9461ad339089b53cff9add099e
Contents?: true
Size: 654 Bytes
Versions: 17
Compression:
Stored size: 654 Bytes
Contents
module Geoblacklight module Relation class Ancestors def initialize(id, repository) @search_id = id @repository = repository end def create_search_params { fq: ["{!join from=#{Settings.FIELDS.SOURCE} to=layer_slug_s}layer_slug_s:#{@search_id}"], fl: [Settings.FIELDS.TITLE, 'layer_slug_s'] } 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
17 entries across 17 versions & 1 rubygems