Install/OnPrem/Solr/Configure-SolrXConnect.ps1

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

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

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

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

Write-Output "Add xConnect Solr cores done."