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.
Note
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
<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 toitembuckets_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 toitembuckets_commerce_products_web_index
Restart the SOLR service.
Enable SOLR by following the Sitecore SOLR Guide
Run
ToggleSearchProvider.ps1
from the integration packages to switch from lucene to SOLR.Update the
$instanceName
to the Sitecore instanceChange the $installDir path, if required.
Index the site.
Click
→ → → and follow the instructions in the wizard.