{"id":3823,"date":"2012-04-16T16:19:40","date_gmt":"2012-04-16T10:49:40","guid":{"rendered":"http:\/\/windowsvj.com\/wpblog\/?p=3823"},"modified":"2012-04-16T16:26:33","modified_gmt":"2012-04-16T10:56:33","slug":"installing-solr-over-windows","status":"publish","type":"post","link":"http:\/\/windowsvj.com\/wpblog\/2012\/04\/installing-solr-over-windows\/","title":{"rendered":"Installing Solr over Windows"},"content":{"rendered":"<p>In the last post, i covered how to troubleshoot Xampp port error for configuring Tomcat Apche Server on Windows. In this post i would be covering on How to install Solr on Windows.<br \/>\n<a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2012\/04\/solr.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2012\/04\/solr.jpg\" alt=\"\" title=\"solr\" width=\"380\" height=\"283\" class=\"aligncenter size-full wp-image-3824\" srcset=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2012\/04\/solr.jpg 380w, http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2012\/04\/solr-300x223.jpg 300w\" sizes=\"auto, (max-width: 380px) 100vw, 380px\" \/><\/a><br \/>\nSolr is an open source enterprise search platform from the Apache Lucene project written in Java. Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering, database integration, and rich document (e.g., Word, PDF) handling. Providing distributed search and index replication, Solr is highly scalable. Solr runs as a standalone full-text search server within a servlet container such as Apache Tomcat. Solr uses the 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 from virtually any programming language. <a href=\"http:\/\/en.wikipedia.org\/wiki\/Apache_Solr\" title=\"Wiki\">(Wiki)<\/a><\/p>\n<p>Steps to install Solr on windows: <\/p>\n<p>1. If you have successfully installed Tomcat Server (using Xampp probably), try opening <a href=\"http:\/\/localhost:8080\">localhost:8080<\/a>. If this shows a page with message &#8220;If you&#8217;re seeing this page via a web browser, it means you&#8217;ve setup Tomcat successfully. Congratulations!&#8221; , you are good to go to second step. We assume tomcat has been installed under D:\\xampp\\tomcat<\/p>\n<p>2. Download and unzip the Solr distribution zip file into a temp folder at D:\\temp\\solrZip\\<br \/>\nLatest build (As of Apr 16, 2012) can be downloaded from here : <a href=\"http:\/\/mirrors.axint.net\/apache\/lucene\/solr\/3.6.0\/apache-solr-3.6.0.zip\">http:\/\/mirrors.axint.net\/apache\/lucene\/solr\/3.6.0\/apache-solr-3.6.0.zip<\/a><\/p>\n<p>3. Create a directory as &#8220;solr home&#8221; directory called, where you intend the application server to function, You may create it inside xampp installation directory itself at<br \/>\nD:\\xampp\\solr<\/p>\n<p>4. Copy the contents of the example\\solr directory D:\\temp\\solrZip\\example\\solr\\ to D:\\xampp\\solr\\<\/p>\n<p>5. Stop the Tomcat service<\/p>\n<p>6. Copy the *solr*.war file from D:\\temp\\solrZip\\dist\\ to the Tomcat webapps directory D:\\xampp\\tomcat\\webapps\\ and rename the *solr*.war file solr.war<\/p>\n<p>7. Configure Tomcat to recognize the solr home directory you created, by adding the Java Options -Dsolr.solr.home=D:\\xampp\\solr\\ and -Dsolr.velocity.enabled=false<br \/>\neither use the system tray icon to add the java option<br \/>\nor manually edit the environment script D:\\xampp\\tomcat\\bin\\setenv.bat and add it to JAVA_OPTS<\/p>\n<p>* Note: For Tomcat 7 and Solr3.6, the above option on setenv.bat may not work, so you could not use it and put this code fragment<br \/>\non $CATALINA_HOME\/conf\/Catalina\/localhost\/solr.xml<\/p>\n<p><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;<br \/>\n&lt;Context docBase=\"D:\\xampp\\tomcat\\webapps\\solr.war\" debug=\"0\" crossContext=\"true\" &gt;<br \/>\n    &lt;Environment name=\"solr\/home\" type=\"java.lang.String\" value=\"D:\\xampp\\solr\\\" override=\"true\" \/&gt;<br \/>\n&lt;\/Context&gt;<\/code><\/p>\n<p>8. Start the Tomcat service<\/p>\n<p>9. Go to the solr admin page to verify that the installation is working. It will be at <strong><a href=\"http:\/\/localhost:8080\/solr\/admin\">http:\/\/localhost:8080\/solr\/admin<\/a><\/strong><\/p>\n<p><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2012\/04\/Screenshot-61.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2012\/04\/Screenshot-61-300x168.png\" alt=\"\" title=\"Screenshot (61)\" width=\"450\" height=\"244\" class=\"aligncenter size-medium wp-image-3825\" \/><\/a><\/p>\n<p>You are good to go with Solr over Tomcat now.. .<\/p>\n<p>Sources: <a href=\"http:\/\/wiki.apache.org\/solr\/SolrTomcat#Tomcat_on_Windows\">http:\/\/wiki.apache.org\/solr\/SolrTomcat#Tomcat_on_Windows<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the last post, i covered how to troubleshoot Xampp port error for configuring Tomcat Apche Server on Windows. In this post i would be covering on How to install Solr on Windows. Solr is an open source enterprise search platform from the Apache Lucene project written in Java. Its [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[258],"tags":[],"class_list":["post-3823","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts\/3823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/comments?post=3823"}],"version-history":[{"count":4,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts\/3823\/revisions"}],"predecessor-version":[{"id":3827,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts\/3823\/revisions\/3827"}],"wp:attachment":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/media?parent=3823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/categories?post=3823"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/tags?post=3823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}