Setting up Solr

Abstract

Solr setup.

Sitecore has a flexible search framework that allows the development of plug-ins to integrate any search engine, and have them behave the same way. The default search engine used by Sitecore is Lucene, but you can also download a plug-in for Solr, which is a better solution for large installations.

Some settings are missing in the shipped SOLR configuration file for the FXM component. A corrected file is located at https://kb.sitecore.net/articles/683462 .

Note

For SOLR version 4.9 or higher, schema.xml requires modification to make it compatible with Sitecore. For more information, go to https://kb.sitecore.net/articles/227897.

Depending on the Sitecore role you are creating, you may be adding different index cores to your Solr instance. See the Configuring servers topic for information on which configuration files  you need to disable and which cores you need to create in Solr, based on your server roles. 

The Sitecore Community Docs provide a guide for installing and configuring Solr with Sitecore

The binary files required to set up Solr are available from the Sitecore Experience Platform Download page

Note

By default, Lucene is configured to index Commerce Server. If you want to use Solr to index Commerce Server, do the following:

  • Disable the CommerceServer.Index.Lucene.config file (in the <website>\App_Config\Include\CommerceServer folder) by adding “.disabled” to the end of the file extension.

  • Enable the CommerceServer.Index.Solr.config.example file (in the <website>\App_Config\Include\CommerceServer folder) by removing the “.example” from the file extension.