Install/OnPrem/Solr/Configure-SolrSitecore.ps1

. "$PSScriptRoot\SolrParams.ps1" -Force
$ErrorActionPreference = "Stop"

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

$prefix = $global:Configuration.prefix
$solrService = $global:Configuration.search.solr.install.serviceName

$solrParams = @{
    Path        = "$PSScriptRoot\sitecore-solr.json"
    SolrUrl     = $SolrServiceURL
    SolrRoot    = $SolrServiceDir
    SolrService = $solrService
    CorePrefix  = $prefix
}
Install-SitecoreConfiguration @solrParams

Write-Output "Add Sitecore Solr cores done."