lib/modules/aspace_utilities.rb
# Query ArchivesSpace Solr index (currently unused but available if needed)
# Ensure that archivesspace_solr_port and archivesspace_solr_path are defined in application.yml
Query ArchivesSpace Solr index (currently unused but available if needed)
Ensure that archivesspace_solr_port and archivesspace_solr_path are defined in application.yml
Query ArchivesSpace Solr index ( currently unused but available if needed ) Ensure that archivesspace_solr_port and archivesspace_solr_path are defined in application . yml
def aspace_solr_query(query, params={})
    solr_url = "http://#{ENV['archivesspace_solr_host']}#{ENV['archivesspace_solr_core_path']}"
    @solr = RSolr.connect :url => solr_url
    @solr_params = {:q => query }
    @solr_params.merge! params
    @response = @solr.get 'select', :params => @solr_params
  end
def aspace_solr_query ( query , params = { } ) solr_url = "http://#{ENV['archivesspace_solr_host']}#{ENV['archivesspace_solr_core_path']}" @solr = RSolr . connect :url => solr_url @solr_params = { :q => query } @solr_params . merge! params @response = @solr . get 'select' , :params => @solr_params end
Query ArchivesSpace Solr index (currently unused but available if needed)
Ensure that archivesspace_solr_port and archivesspace_solr_path are defined in application.yml
Query ArchivesSpace Solr index ( currently unused but available if needed ) Ensure that archivesspace_solr_port and archivesspace_solr_path are defined in application . yml
query
<not_specific>
params
<not_specific>