Install/OnPrem/Solr/PreInstalled/Add-CustomSolrConfigSets.ps1
. "$PSScriptRoot\..\SolrParams.ps1" -Force $ErrorActionPreference = "Stop" Write-Output "Add custom Solr config sets started..." if (($null -eq $global:Configuration.search.solr.customCores) -or ($global:Configuration.search.solr.customCores.Count -lt 1)) { Write-Warning "No custom Solr cores found." } else { $prefix = $global:Configuration.prefix $configPath = "$PSScriptRoot\custom-solrconfigset.json" foreach ($index in $global:Configuration.search.solr.customCores) { $solrParams = @{ Path = $configPath SolrRoot = $SolrTempDir CorePrefix = $prefix CoreName = $index.name } Install-SitecoreConfiguration @solrParams } } Write-Output "Add custom Solr config sets done." |