Configure a search and indexing provider
When you configure servers you also need to choose a search and indexing provider. You can choose Lucene or Solr, depending on your business purpose and the type of server architecture you want to implement.
Depending on which provider you choose there is a different set of configuration steps to follow. If you use Lucene follow the steps in this topic and disable all Solr configuration files. If you use Solr follow the steps in this topic and disable all Lucene configuration files.
Useful links:
-
Using Solr or Lucene - Guidance on choosing a search and indexing provider.
-
Search index descriptions - A list of all Sitecore default search indexes with descriptions.
-
Search indexes required for servers in a scalable environment - A list of search indexes required on each type of server.
-
Index update strategies - Guidance on which type of index update strategy you should use to maintain your search indexes.
Configure the Lucene search provider
To configure the Lucene search and indexing provider:
-
Download the spreadsheet that lists of all the configuration files that you must enable or disable for each server type.
-
For Sitecore 8.2, download the Config Enable Disable Excel spreadsheet for Sitecore 8.2 initial release.
-
For Sitecore 8.2 Update 1, download the Config Enable Disable Excel spreadsheet for Sitecore 8.2 Update 1.
-
For Sitecore 8.2 Update 2, Update 3, Update 4, and Update 5, download the Config Enable Disable Excel spreadsheet for Sitecore 8.2 Update 2-5.
-
For Sitecore 8.2 Update 6, download the Config Enable Disable Excel spreadsheet for Sitecore 8.2 Update 6.
NoteThis spreadsheet is also available to download from each server configuration topic.
-
-
Click the drop down in the Search Provider Used column.
-
Clear all the default selections.
-
Select Base and Lucene is used.
-
Click OK.
This filter enables you to see a list of all the configuration files you need to enable or disable if you are using Lucene as your search and indexing provider.
Configure the Solr search provider
To configure the Solr search and indexing provider:
-
Download the spreadsheet that lists of all the configuration files that you must enable or disable for each server type.
-
For Sitecore 8.2, download the Config Enable Disable Excel spreadsheet for Sitecore 8.2 initial release.
-
For Sitecore 8.2 Update 1, download the Config Enable Disable Excel spreadsheet for Sitecore 8.2 Update 1.
-
For Sitecore 8.2 Update 2, Update 3, Update 4, and Update 5, download the Config Enable Disable Excel spreadsheet for Sitecore 8.2 Update 2-5.
-
For Sitecore 8.2 Update 6, download the Config Enable Disable Excel spreadsheet for Sitecore 8.2 Update 6.
NoteThis spreadsheet is also available to download from each server configuration topic.
-
-
Click the drop down in the Search Provider Used column.
-
Clear all the default selections.
-
Select Base and Solr is used.
-
Click OK.
This filter enables you to see a list of all the configuration files you need to enable or disable if you are using Solr as your search and indexing provider.
First ensure that you have enabled all Solr configuration files required on a content delivery server. If you use multiple cores, no further configuration is necessary.
Use a 64-bit version of the Java Virtual Machine (JVM) for production servers. Solr allocates 512 MB of memory by default. If you require Solr to have access to more memory you can adjust these limits when Solr starts up. See the official Solr documentation for more information.
Multiple Solr cores
For optimal performance we recommend that you always use multiple cores for your indexes. If you store all indexes in the same core, when you update an index the contents of all the other indexes in the same core are also cleared. As it is possible to rebuild indexes individually, some indexes will be left empty after rebuild. If you store each default index in a separate Solr core the names of these cores should match the names of the Sitecore indexes.
Multiple Solr cores may improve the performance of your search and indexing. For example, you should use separate cores for each index in a production environment and only share indexes on a single core in a development environment. The Solr website provides more detailed guidance and advice when configuring Solr.
Renaming Solr cores
You can change the default Solr core names to your own custom names. If you want to change the default Solr core names and use your own custom names, then you also need to change the names in each Sitecore Solr configuration file.
To set a Solr core for a Sitecore index:
-
In the
App_Config\Include
folder, open the configuration file where the Sitecore index is declared. For example, in theSitecore.ContentSearch.Solr.Index.Core.config
file. -
Navigate to the section where the index is declared:
configuration/sitecore/contentSearch/configuration/indexes/
:RequestResponse<index id="..." type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"> <param desc="name">$(id)</param> <param desc="core">$(id)</param>
-
Change value of the
core
parameter to the custom name of the Solr core you want to use.Follow the same procedure for each Solr configuration file where you want to change the Solr core name.