Pipelines/Steps/Install/OnPrem/Sitecore/XM/Solr/9.0/Configure-SolrSitecore.ps1

$ErrorActionPreference = "Stop"

Write-Output "Add Sitecore Solr cores started..."

$prefix = $SAFConfiguration.prefix
$solrService = $SAFConfiguration.search.solr.install.serviceName

$sifConfiguration = GetSIFConfiguration -Name "sitecore-solr.json" -ContextPath "$PSScriptRoot"

$solrParams = @{
    Path        = $sifConfiguration
    SolrUrl     = $SAFSolrServiceURL
    SolrRoot    = $SAFSolrServiceDir
    SolrService = $solrService
    CorePrefix  = $prefix
}
Install-SitecoreConfiguration @solrParams

Write-Output "Add Sitecore Solr cores done."