Sha256: bf5afd3e515f2c5e0bacb73086cd6bf0a6a51e927648d81e5abe3d9da5035b2b
Contents?: true
Size: 681 Bytes
Versions: 1
Compression:
Stored size: 681 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', 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geoblacklight-2.4.0 | lib/geoblacklight/relation/ancestors.rb |