Hi Folks,

In my first blog post Configure Solr with Sitecore: Part 1 – Install Solr as a Windows Service, we saw how to configure SOLR as an service. Now let’s make changes in default Solr instance so we can use it with Sitecore.

  1. Before moving ahead we will first check Solr Service by browsing the URL  http://localhost:portnumber/solr.
  2. Now we go to the Solr Directory and copy “basic_configs” folder from \server\solr\configsets to \server\solr folder. Rename this folder to SolrConfigs.step-15
  3. Open SolrConfig\conf Folder and Rename managed-schema file to schema.xml.step-16step-17
  4.  Make changes in the schema.xml file by using Sitecore  Kb Article. Follow instructions as per your Solr & Sitecore version.
  5. Save solrconfig file and take a backup of schema.xml file.
  6. Go to the Sitecore instance and Open Control Panel. Click on the Solr Schema.xml file. Provide the path of schema.xml file. Click on Generate. It will successfully generate schema.xml file.step-18step-19
  7. Duplicate the SolrConfigs folder and rename it to sitecore_master_index.
  8. Go to the folder location sitecore_master_index and open core.properties file.
  9. Update the name property sitecore_master_index and close the file.
  10. Follow steps 7 through 9 and create following folders for all the below indexes:
    sitecore_analytics_index
    sitecore_core_index
    sitecore_web_index
    sitecore_master_index
    sitecore_fxm_master_index
    sitecore_fxm_web_index
    sitecore_list_index
    sitecore_marketing_asset_index_master
    sitecore_marketing_asset_index_web
    sitecore_marketingdefinitions_master
    sitecore_marketingdefinitions_web
    sitecore_suggested_test_index
    sitecore_testing_index
    social_messages_master
    social_messages_web
  11. Restart the Solr service. It will automatically load all the cores.step-22
    With this, we have successfully configured the Solr specific changes required. Keep watching this space for my next post, where we will have a look at the configuration changes that we need to make in Sitecore to use Solr instead of Lucene.