Skip to content

Commit

Permalink
term fetcher can use solrcloud for biblio solr
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed May 22, 2024
1 parent 32c3b5a commit e3b0c2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/authority_browse/term_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def conn
builder.response :json
builder.adapter :httpx
builder.headers["Content-Type"] = "application/json"
if S.biblio_solr_cloud_on?
builder.request :authorization, :basic, S.solr_user, S.solr_password
end
end
end

Expand Down
3 changes: 3 additions & 0 deletions lib/services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
S.register(:solr_configuration) { ENV["SOLR_CONFIGURATION"] || "authority_browse" }
S.register(:solr_collection) { ENV["SOLR_COLLECTION"] || "authority_browse" }
S.register(:biblio_solr) { ENV["BIBLIO_SOLR"] }
S.register(:biblio_solr_cloud_on?) do
S.biblio_solr.match?("search-solrcloud-headless")
end

S.register(:replication_factor) { ENV["SOLR_REPLICATION_FACTOR"] || 1 }

Expand Down

0 comments on commit e3b0c2e

Please sign in to comment.