Step by step installation/configuration of apache solr

Now Apache solr is a most popular and useful part for searching, documentation etc. purpose website. In this article we will learn how to implement Apache solr with drupal.

Firstly we have to know what apache solr dose and how it works

What Solr Does

Hadoop operators put documents in Apache Solr by “indexing” via XML, JSON, CSV or binary over HTTP.

Then users can query those petabytes of data via HTTP GET. They can receive XML, JSON, CSV or binary results. Apache Solr is optimized for high volume web traffic.

Top features include:

  • Advanced full-text search
  • Near real-time indexing
  • Standards-based open interfaces like XML, JSON and HTTP
  • Comprehensive HTML administration interfaces
  • Server statistics exposed over JMX for monitoring
  • Linearly scalable, auto index replication, auto failover and recovery
  • Flexible and adaptable, with XML configuration

Solr is highly reliable, scalable and fault tolerant. Both data analysts and developers in the open source community trust Solr’s distributed indexing, replication and load-balanced querying capabilities.

How Solr Works

Solr is written in Java and runs as a standalone full-text search server within a servlet container such as Jetty. Solr uses the Apache Lucene Java search library at its core for full-text indexing and search, and has REST-like HTTP/XML and JSON APIs that make it easy to use with many programming languages.

Solr’s powerful external configuration allows it to be tailored to almost any type of application without Java coding, and it has an extensive plugin architecture when more advanced customization is required.

Apache Solr includes a deployment methodology to set up a cluster of Solr servers that combines fault tolerance and high availability. This is referred to as SolrCloud. SolrCloud provides distributed indexing and search capabilities, and provides automated failover for queries in the event of any failure to a SolrCloud server.

Implementation with Drupal

Step 1: Download Apache solr latest version i.e 5.3.1 from here and extract the files. the file structures are as shown in below screenshot

step 1

Step 2: Go to bin folder and open command prompt for bin directory, see below screenshot:

step 2.1


Step 3: 

Please make sure the java is installed on your machine. use command : java -version

Please make sure environment variable path set. if not set please configure the environment path

Stpe 4:

Start solr using command.

                  solr start



Start Solr For version 3 and below

Go to solr > Server


use command “JAVA -jar start.jar


Step 5: Now open solr user interface.

solr will run on 8983 port.

URL : http://localhost:8983/solr/#/



Now Enjoy the searching.

Comment on this article if you face any kind of issue for installing/configuring the solr.