Enable SOLR for Commerce Connect
Enable SOLR for your Sitecore Commerce 8.1 powered by Commerce Server and Commerce Server 11.3 solution if you are using Commerce Connect.
SOLR is not required to use Commerce Connect.
At the desktop of your Sitecore Commerce 8.1 powered by Commerce Server and Commerce Server 11.3 machine:
-
Set the address to the SOLR instance in
App_Config\Include\MVCSite\MVCSite.config. -
Copy the default Schema.xml from the deployed SOLR server.
-
Generate the SOLR Schema.xml file.
At your Sitecore desktop, click → → → and follow the instructions in the
Build Solr Schema Wizard. -
Add the following dynamic fields and field type to the generated schema.xml file.
Add the following to schema.xml
-
Copy the updated schema file to SOLR server.
-
Add additional itembuckets to the SOLR config to support indexes.
-
Ensure SOLR is not running.
-
Navigate to the SOLR installation directory to
\example\solr -
Copy the
itembucketsfolder. -
Rename the copy
itembuckets_commerce_products_master_index. -
Open the folder
itembuckets_commerce_products_master_index. -
Delete the
datafolder. -
Open the
core.propertiesfile. -
Update the
nameproperty toitembuckets_commerce_products_master_index -
Copy the
itembucketsfolder. -
Rename the copy
itembuckets_commerce_products_web_index. -
Open the folder
itembuckets_commerce_products_web_index. -
Delete the
datafolder. -
Open the
core.propertiesfile. -
Update the
nameproperty toitembuckets_commerce_products_web_index
-
-
Restart the SOLR service.
-
Enable SOLR by following the Sitecore SOLR Guide
Run
ToggleSearchProvider.ps1from the integration packages to switch from lucene to SOLR.Update the
$instanceNameto the Sitecore instanceChange the $installDir path, if required.
-
Index the site.
Click → → → and follow the instructions in the wizard.