Pipelines/Steps/Install/OnPrem/Solr/PreInstalled/Create-RebuildSolrCoresViaHTTP.ps1
$ErrorActionPreference = "Stop" Write-Output "Create Solr rebuild cores via HTTP started..." if (($null -eq $SAFConfiguration.search.solr.rebuildCores) -or ($SAFConfiguration.search.solr.rebuildCores.Count -lt 1)) { Write-Output "No rebuild cores defined. Skipping..." } else { foreach ($rebuildCore in $SAFConfiguration.search.solr.rebuildCores) { $fullSecondaryCoreName = "$($SAFConfiguration.prefix)_$($rebuildCore.mainCore)_sec" CreateNewSolrCoreViaHTTP -SolrUrl $SAFSolrServiceURL -CoreName $fullSecondaryCoreName } } Write-Output "Create Solr rebuild cores via HTTP done." |