Hi Justin,
The original developers are no longer working with us but they created separate gems for each solr core
Currently we call the blacklight6 search_results method in blacklight_search_helper from our controller, which uses our own "repository" method for repository.search(builder) and points to a different core.
Here is some code from our music search gem. In the routes file we have
mount MusicSearch::Engine, at: 'music'
Thanks,
Tadas
module MusicSearch::SolrHelperExtension
extend ActiveSupport::Concern
include Blacklight::SearchHelper
def repository
MusicSearch::SolrRepository.new(blacklight_config)
end
end
class MusicsearchController < ApplicationController
include MusicSearch::SolrHelperExtension
include BlacklightRangeLimit::ControllerOverride
include BlacklightAdvancedSearch::Controller
include Blacklight::Catalog
include Blacklight::Marc::Catalog
include Blacklight::Controller
include Blacklight::Folders::ApplicationControllerBehavior
###
config. stuff
###
def index
session[:view] = 'music'
# Save the current search path into a session variable
# - This is necessary for back_to_search links to work on Reserves details views
if params['q']
session[:search_results_url] = request.url
end
(@response, @document_list) = search_results params
# music_response_facets
respond_to do |format|
format.html {
if params[:q] # search executed
render '/catalog/index'
else
render '/music_search/home'
end
}
format.rss { render :layout => false }
format.atom { render :layout => false }
format.json do
render json: render_search_results_as_json
end
additional_response_formats(format)
document_export_formats(format)
end
end
module MusicSearch
class SolrRepository < Blacklight::Solr::Repository
def build_connection
@blacklight_solr ||= RSolr.connect(blacklight_solr_config)
end
def blacklight_solr_config
@blacklight_solr_config ||= Rails.application.config.music_search_solr_config
end
end
end