• Articles
  • Tutorials
  • Interview Questions

How to Download Solr in 5 Easy Steps

Introduction to Apache Solr

pic2

Apache Solr is an open-source search server. SOLR tasks depend on the full-text search engine known as Apache Lucene. In simple words SOLR is an HTTP wrapper along with an inverted index that is offered by the Lucene. The inverted index can be defined as a list of words and each word- entry links to the documents where it exists. The SOLR had been used in many of the enterprise projects. There is no need for Java code for SOLR in enterprise projects, even though Java itself has to be installed.

Installation of Apache Solr

Apache Solr installation is suitable in the  JRE (Java runtime environment)

Check whether Java is installed on your system using the below command

$ java -version

If installed, you can see the below output.

java version “1.7.0_55”

Java(TM) SE Runtime Environment (build 1.7.0_55-b13)

 Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

Else, download and install the Java  software from the following link:

https://www.oracle.com/java/technologies/downloads/.

And, download the Solr  from below link.

https://solr.apache.org/.

Certification in Bigdata Analytics

Steps to install the Apache Solr.

  • You can unload the Solr distribution  to your preferred
  • Stop the Java servlet container.
  • Copy the solr.war file from the Solr distribution to the web apps directory of our servlet container .
  • Copy the Solr Home directory solr-4.x.0/example/solr/ from the distribution to our preferred Solr Home location.
  • Start our servlet container, passing to it the location of  our Solr Home in one of these ways:
  • Set the Java system property solr.solr.home to our Solr Home.
  • Configure the servlet container so that a JNDI lookup of java:comp/env/solr/home by the Solr webapp will point to our Solr Home.
  • Start the servlet container in the directory containing ./solr: the default Solr Home is solr under the JVM’s current working directory ($CWD/solr).

Steps to run the Solr:

1.Start the server by using this command
$ java -jar start.jar
2.Start the web server
C:\Applications\Solr\example > start.bat

3. Check the solr with the following  URL on the browser.
http://localhost:8983/solr/
pic2

Course Schedule

Name Date Details
Big Data Course 23 Nov 2024(Sat-Sun) Weekend Batch View Details
30 Nov 2024(Sat-Sun) Weekend Batch
07 Dec 2024(Sat-Sun) Weekend Batch

About the Author

Technical Research Analyst - Big Data Engineering

Abhijit is a Technical Research Analyst specialising in Big Data and Azure Data Engineering. He has 4+ years of experience in the Big data domain and provides consultancy services to several Fortune 500 companies. His expertise includes breaking down highly technical concepts into easy-to-understand content.