Install apache Solr

  • Solr is open source search platform and built upon java library. It is one of the most popular search platform used by many websites so that it can search and index across the site then return associated content based on search query.

Step 1: Go to cmd prompt then check for JRE with right version.

  • If JRE is available in your system it will show you the version. If not then you have to install JRE.
install solr step 1

Step 2: Download require Solr version from below url

Step 3: Extract the Zip folder in your machine. Now go to extracted Solr folder. Get inside the example folder and execute the command.

install solr step 3
  • As soon as you run the above command Solr will start with default port 8983. That will accessible on http://localhost:8983/solr/#/
  • This will install Solr and run in the background. By default it will use the port number 8983.
  • You can also change default port number to one of your choice.
install solr step 4

Step 4: To Configure Solr with Drupal 7.x Download Solr from https://www.drupal.org/project/apachesolr download the recommended version and install.

Step 5: Go to \apachesolr-7.x-1.8\apachesolr\solr-conf\solr-4.x copy all the files to Solr server directory [solr-4.6.1\example\solr\collection1\conf\] and replace them with existing files.

After replacing your file should look like.

install solr step 5

Now your Solr admin page look like

install solr step 6

Step 6: So we are almost done with Solr server setup. configure on module level

  • To do this we need to go to Solr setting page /admin/config/search/apachesolr/settings

Fill up mandatory detail like Solr server URL and Description and hit on Test Connection button.

install solr step 7

Step 7: Almost done with Solr server setup and configuration, then do indexing by visiting default index page admin/config/search/apachesolr.

install solr step 8

Categorized in:

Tagged in:

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,