Apache Solr - On Windows Environment




Apache Solr - On Windows Environment


 

In this chapter, we will discuss how to set up Solr in Windows environment. To install Solr on your Windows system, you need to follow the steps given below −

  • Visit the homepage of Apache Solr and click the download button.

  • Select one of the mirrors to get an index of Apache Solr. From there download the file named Solr-6.2.0.zip.

  • Move the file from the downloads folder to the required directory and unzip it.

Suppose you downloaded the Solr fie and extracted it in onto the C drive. In such case, you can start Solr as shown in the following screenshot.

Apache Solr - On Windows Environment

To verify the installation, use the following URL in your browser.

http://localhost:8983/

If the installation process is successful, then you will get to see the dashboard of the Apache Solr user interface as shown below.

Apache Solr - On Windows Environment

Setting Java Environment

We can also communicate with Apache Solr using Java libraries; but before accessing Solr using Java API, you need to set the classpath for those libraries.

Setting the Classpath

Set the classpath to Solr libraries in the .bashrc file. Open .bashrc in any of the editors as shown below.

$ gedit ~/.bashrc

Set classpath for Solr libraries (lib folder in HBase) as shown below.

export CLASSPATH = $CLASSPATH://home/hadoop/Solr/lib/*

This is to prevent the “class not found” exception while accessing the HBase using Java API.



Frequently Asked Questions

+
Ans: Apache Solr - Search Engine Basics view more..
+
Ans: Apache Solr - Overview view more..
+
Ans: Apache Solr Tutorial view more..
+
Ans: Apache Solr - On Windows Environment view more..
+
Ans: Apache Solr - On Hadoop view more..
+
Ans: Apache Solr - Architecture view more..
+
Ans: Apache Solr - Terminology view more..
+
Ans: Apache Solr - Basic Commands view more..
+
Ans: Apache Solr - Core view more..
+
Ans: Apache Solr - Indexing Data view more..
+
Ans: Apache Solr - Adding Documents (XML) view more..
+
Ans: Apache Solr - Updating Data view more..
+
Ans: Apache Solr - Deleting Documents view more..
+
Ans: Apache Solr - Retrieving Data view more..
+
Ans: Apache Solr - Querying Data view more..
+
Ans: Apache Solr - Faceting view more..



Recommended Posts:


    Rating - NAN/5
    537 views

    Advertisements