Skip to content

Commit

Permalink
Merge pull request #25 from mlibrary/add-collection-replication
Browse files Browse the repository at this point in the history
Add collection replication
  • Loading branch information
niquerio authored Jan 17, 2024
2 parents f3704b6 + bbd5b71 commit d41abbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
S.register(:solr_collection) { ENV["SOLR_COLLECTION"] || "authority_browse" }
S.register(:biblio_solr) { ENV["BIBLIO_SOLR"] }

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

# @!method S.solrcloud
# @return [SolrCloud::Connection]
# @!scope S
Expand Down
3 changes: 2 additions & 1 deletion lib/solr/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def latest_daily_collection
def create_daily_collection
S.solrcloud.create_collection(
name: daily_name,
configset: configset_name
configset: configset_name,
replication_factor: S.replication_factor
)
end

Expand Down

0 comments on commit d41abbd

Please sign in to comment.