Install/OnPrem/Solr/PreInstalled/Add-XConnectSolrConfigSets.ps1

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

Write-Output "Adding xConnect Solr config sets started..."

$prefix = $global:Configuration.prefix
$configPath = "$PSScriptRoot\xconnect-solrconfigsets.json"

$solrParams = @{
    Path        = $configPath
    SolrRoot    = $SolrTempDir
    CorePrefix  = $prefix
}

Install-SitecoreConfiguration @solrParams

Write-Output "Adding xConnect Solr config sets done."