You can use Solr instead of Lucene with SCpbCS. To use Solr instead of Lucene, you will need
to perform two tasks: enable the Solr config files, and then create new index cores in
Solr.
To enable the Solr config files go to the Sitecore instance folder on disk and do the
following:
- Navigate to \Website\App_Config\Include\CommerceServer\ and add
".disabled" to the end of the following Lucene configuration files:
- CommerceServer.ContentSearch.Lucene.DefaultIndexConfiguration.config
- CommerceServer.ContentSearch.Lucene.Index.Master.config
- CommerceServer.ContentSearch.Lucene.Index.Web.config
- Then remove ".example" from the following Solr configuration files:
- CommerceServer.ContentSearch.Solr.DefaultIndexConfiguration.config.example
- CommerceServer.ContentSearch.Solr.Index.Master.config.example
- CommerceServer.ContentSearch.Solr.Index.Web.config.example
- If you are using the Reference Storefront, navigate to
\Website\App_Config\Include\Reference.Storefront\ and add
".disabled" to the end of the following Lucene configuration file:
- Reference.Storefront.Index.Lucene.config
- Then remove ".disabled" from the following Solr configuration file:
- Refernece.Storefront.Index.Solr.config.disabled
- For Microsoft Dynamics, navigate to
\Webite\App_Config\Include\DynamicsRetail\ and add ".disabled" to the
end of the following Lucene configuration file:
- DynamicsRetail.Connectors.Index.Lucene.config
- Then remove ".disabled" from the following Solr configuration file:
- DynamicsRetail.Connectors.Index.Solr.config.disabled
- To create the index cores in Solr, navigate to the folder where the Sitecore index folders
are created, under the Solr installation. Use the same steps you just performed to create
the Sitecore index cores to create index cores for the following:
- commerce_products_master_index
- commerce_products_web_index (optional)
Note: These instructions only provide the necessary information to set up Solr for the commerce
related components. Sitecore must also be migrated to Solr.