Install a search provider in a scaled solution
Sitecore Experience Platform supports Solr as the search provider for both content search and analytics search.
- In PaaS solutions, you can use Solr, or SolrCloud in Azure.
- In on-prem solutions, you can use Solr or SolrCloud. In on-premise solutions, the Sitecore Installation Framework requires Solr to deploy.
Support for Lucene was removed in Sitecore Experience Platform 9.3.0.
Support for Azure Search was removed in Sitecore Experience Platform 10.2.0.
For local testing and development, you can set up a self-signed certificate. For more information about creating a self-signed certificate, see the Apache Solr Reference guide.
Install the Solr Certificate
You must install the Solr certificate on the servers that perform the following roles:
- Content Management
Deploy the ConfigSets to SolrCloud in an on-prem solution
The SolrCloud deployment configuration template for SIF deploy the required ConfigSets to remote Zookeeper and SolrCloud installations.
Prerequisites
Before you deploy the ConfigSets to SolrCloud, you must:
-
Download the Solr 10.0 for Windows installation archive and save it locally, for example,
C:\solr.You use this file to access the
solr.cmd.zookeepercommand line interface. If you have already installed the required version of Solr you can skip this step.To use SolrCloud, you do not need to install Solr as a local service.
-
Install SolrCloud 10.0.
-
Locate the
Sitecore 10.X.X rev. XXXXXX (WDP XM1 packages).zippackage and in theXM1 Configuration files 10.X.X rev. XXXXXX.zipfile extract the following configuration files:SolrCloud-SitecoreConfigSets.json
Install the SolrCloud
To deploy SolrCloud:
-
In a Powershell command line, go to the folder where you saved the installation configuration files and run the following cmdlet with the appropriate parameters:
Install the Sitecore content ConfigSets
To deploy the Sitecore content ConfigSets to SolrCloud:
-
In a PowerShell command line, go to the folder where you saved the installation configuration files and run the following cmdlet with the appropriate parameters:
-
Verify that the ConfigSets are deployed to Zookeeper.
Deploy the SolrCloud content collections
To deploy the SolrCloud content collections:
-
In a PowerShell command line, go to the folder where you saved the installation configuration files and run the following cmdlet with the appropriate parameters:
NoteSolrConnectionUserName and SolrConnectionPassword should be noted to be used in subsequent role’s deployment.
-
Verify that the following CMS collections are deployed to SolrCloud:
<prefix>_core_index<prefix>_master_index<prefix>_web_index<prefix>_marketingdefinitions_master<prefix>_marketingdefinitions_web<prefix>_marketing_asset_index_master<prefix>_marketing_asset_index_web<prefix>_testing_index<prefix>_suggested_test_index<prefix>_fxm_master_index<prefix>_fxm_web_index<prefix>_personalization_index
Deploy Sitecore with SolrCloud
After you have configured SolrCloud, before you install Sitecore XP, you must ensure that the SolrCloud parameter is configured correctly in the connection string.
To install the Sitecore platform with a connection to the newly configured SolrCloud instance, in the SIF deployment script, in the SolrUrl parameter, add the ;solrCloud=true setting.
If you are going to deploy the server roles separately, update the SolrUrl parameter in following deployment configuration files:
sitecore-XM1-cd.jsonsitecore-XM1-cm.json
When you use SolrCloud, you do not need to deploy the sitecore-solr.json template.