Enable SOLR for your Sitecore Commerce 7.5, powered by Commerce Server and Commerce Server
11.1 solution if
you are using Commerce Connect.
Note: SOLR is not required to use Commerce Connect.
At the desktop of your Sitecore Commerce 7.5, powered by Commerce Server and Commerce Server
11.1
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
<dynamicField
name="*_tm" type="text_general" indexed="true" stored="true"
multiValued="true"/> <dynamicField name="*_sci" type="string_ci" indexed="true"
stored="true" /> <fieldType name="string_ci" class="solr.TextField"
sortMissingLast="true" omitNorms="true">
<analyzer>
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"
/>
</analyzer> </fieldType>
-
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 itembuckets folder.
-
Rename the copy
itembuckets_commerce_products_master_index.
-
Open the folder
itembuckets_commerce_products_master_index.
-
Delete the data folder.
-
Open the core.properties file.
-
Update the name property to
itembuckets_commerce_products_master_index
-
Copy the itembuckets folder.
-
Rename the copy
itembuckets_commerce_products_web_index.
-
Open the folder
itembuckets_commerce_products_web_index.
-
Delete the data folder.
-
Open the core.properties file.
-
Update the name property to
itembuckets_commerce_products_web_index
-
Restart the SOLR service.
-
Enable SOLR .
Run ToggleSearchProvider.ps1 from the integration
packages to switch from lucene to SOLR.
Update the $instanceName to the Sitecore instance
Change the $installDir path, if required..
-
Index the site .
Click and follow the instructions in the wizard.