Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Apache Solr High Performance

You're reading from  Apache Solr High Performance

Product type Book
Published in Mar 2014
Publisher
ISBN-13 9781782164821
Pages 124 pages
Edition 1st Edition
Languages
Author (1):
Surendra Mohan Surendra Mohan
Profile icon Surendra Mohan

Prerequisites for Solr


Before we get ready for the installation, you need to learn about the components necessary to run Apache Solr successfully and download the following prerequisites:

Tip

It is recommended that you choose the latest version of the preceding components due to the fact that the latest version has security patches implemented, which are lacking in the older ones. Additionally, you may use any version of these components, but keep in mind that they are compatible with each other and are secure enough to handle intruders.

Installing components

Once you have the previously mentioned installers ready, you may proceed with the installation by performing the following steps:

  1. Install XAMPP and follow the instructions.

  2. Install the latest Java JDK.

  3. Install Tomcat and follow the instructions.

  4. By now, there must be a folder called /xampp in your C: (by default). Navigate to the xampp folder, find the xampp-control application, and start it, as shown in the following screenshot:

  5. Start Apache, MySQL, and Tomcat services, and click on the Services button present at the right-hand side of the panel, as shown in the following screenshot:

  6. Locate Apache Tomcat Service, right-click on it, and navigate to Properties, as shown in the following screenshot:

  7. After the Properties window pops up, set the Startup type property to Automatic, and close the window by clicking on OK, as shown in the following screenshot:

  8. For the next few steps, we will stop Apache Tomcat in the Services window. If this doesn't work, click on the Stop option.

  9. Extract Apache Solr and navigate to the /dist folder. You will find a file called solr-4.3.1.war, as shown in the following screenshot (we need to copy this file):

  10. Navigate to C:/xampp/tomcat/webapps/ and paste the solr-4.3.1.war file (which you copied in the previous step) into the webapps folder. Rename solr-4.3.1.war to solr.war, as shown in the following screenshot:

  11. Navigate back to <ApacheSolrFolder>/example/solr/ and copy the bin and collection1 files, as shown in the following screenshot:

  12. Create a directory in C:/xampp/ called /solr/ and paste the ApacheSolrFolder>/example/solr/ files into this directory, that is, C:/xampp/solr, as shown in the following screenshot:

  13. Now, navigate to C:/xampp/tomcat/bin/tomcat6, click on the Java tab, and copy the command -Dsolr.solr.home=C:\xampp\solr into the Java Options section, as shown in the following screenshot:

  14. Now its time to navigate to the Services window. Start Apache Tomcat in the Services window.

  15. Now, you are done with installing Apache Solr in your local environment. To confirm, type http://localhost:8080/solr/admin/ and hit the Enter key on the keyboard. You should be able to see Apache Solr's dashboard.

You have been reading a chapter from
Apache Solr High Performance
Published in: Mar 2014 Publisher: ISBN-13: 9781782164821
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}