Create SOLR SXA cores

After installing SOLR and connecting it to your Sitecore instance, you may notice that a number of default Sitecore platform cores have been added. In SOLR, a core is an instance of a Lucene index that contains the configurations for that index. Because each index should have its own core, you must create a core for each custom index you want to create for SXA.

To create your SOLR SXA core:

  1. Duplicate the core directory created for sitecore_master_index (or company_name_master_index) twice and rename to:

    • sitecore_sxa_master_index.
    • sitecore_sxa_web_index.
  2. In those two folders, remove everything except the conf directory.

  3. On the Solr web interface, click Core Admin, and click Add Core to add sitecore_sxa_master_index. Do the same for sitecore_sxa_web_index.

    Note

    Make sure that the names of the Solr cores you created match the settings for sitecore_sxa_master_index and sitecore_sxa_web_index in Sitecore.XA.Foundation.Search.Solr.config.

  4. In Sitecore, log in to the Launchpad, and open the Control Panel.

  5. In the Indexing section, click Populate Solr Managed Schema.

  6. In the Schema Populate dialog, select sitecore_sxa_master_index and sitecore_sxa_web_index, and click Populate.

  7. In the Indexing section, click Indexing Manager.

  8. In the Indexing Manager dialog box, select sitecore_sxa_master_index and sitecore_sxa_web_index, and click Rebuild.

If you have suggestions for improving this article, let us know!