Fast track Solr for lazy Sitecore developers


Please use this document only if you don’t need to do anything specific and you are not installing in production (or you do, but you are really sure in what you are doing). Ideal for testing locally. SOLR 4.10, Sitecore 8.1 versions (might also work for 8.0, needs checking)

Shortest guide version

…if you have already done installing and configuring before and you are just looking for links:

Longer guide version

…if you are doing it first time

Step 1: Download SOLR 4.10 installer and unpack anywhere.

Notes:

Currently officially supported version of SOLR is 4.10. A list of supported versions you can see in the compatibility table at this KB article

If you want to install it through Bitnami, Here is a link to SOLR Bitnami installer for 4.10.

If officially supported version changes to 5+, or you want to use SOLR version 5+, sorry, for now you’ll need to use the fullest guide.

Step 2: Download clean Sitecore SOLR cores carefully created for you by me <3. These are all the cores needed to run Sitecore 8.1 with SOLR.

Unpack the archive and put the cores to the place where your example SOLR cores are. It will be C:\solr-4.10.4\example\solr or C:\Bitnami\solr-4.7.1-1\apache-solr\solr.

The shortest definitive guide of finding where your SOLR cores should lie is “find a folder with collection1 in it, that doesn’t have anything about schemaless or morphlines in path”. Example:

This is how the folder will look like after you unpack cores there:

Step 3: Go to folder C:\solr-4.10.4\bin (this folder should contain solr.cmd) and run Windows Command Line there. Type “solr start” in command line:

Now you should have SOLR running at http://localhost:8983/solr/#/ with all our cores visible in Core Selector:

Step 4: Download Script disabling all Lucene configs. Put the script to App_Config/Include and run from command line. You should see the next output:

Step 5: Script enabling all Solr configs. Put the script to App_Config/Include and run from command line. You should see the next output:

Step 6: Unpack Sitecore Solr Support package to bin folder and add Microsoft.Practices.Unity.dll

Solr Support package for 8.1 update-3 can be downloaded by this link

Step 7: Edit the Global.asax file as follows:

<%@Application Language='C#' Inherits="Sitecore.ContentSearch.SolrProvider.UnityIntegration.UnityApplication" %>

or download Global.asax with this change here

Verify that it works

Go to Sitecore Control Panel, Indexing Manager and rebuild any index.