Sha256: 6bad9de1913e10a3cb6e3f8232f868563488a4c3772fa7ddfeff9af59dc96426
Contents?: true
Size: 757 Bytes
Versions: 8
Compression:
Stored size: 757 Bytes
Contents
# frozen_string_literal: true 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=#{Settings.FIELDS.UNIQUE_KEY}}#{Settings.FIELDS.UNIQUE_KEY}:#{@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