Installing Solr on Windows 7 x64

Took a few steps to get this working.

1. Download Java SDK

http://www.oracle.com/technetwork/java/javase/downloads/index.html
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html

2. Download Tomcat 7

http://tomcat.apache.org/download-70.cgi
http://apache.cs.utah.edu/tomcat/tomcat-7/v7.0.25/bin/apache-tomcat-7.0.25.exe

3. Download Solr 3.4.0

http://apache.mirrors.airband.net/lucene/Solr/
http://apache.mirrors.airband.net/lucene/Solr/3.4.0/apache-solr-3.4.0.zip

NOTE: Make sure you download 3.4.0 and not 3.5.0.

4. Install the Java SDK

5. Install Tomcat on Windows

6. Verify Tomcat works by trying to browse to http://localhost:8080/

Solr_step6

7. Right-click on Tomcat icon in system tray, select stop service

8. Unzip apache-solr-3.4.0.zip to C:\apache-solr-3.4.0

9. Copy C:\apache-solr-3.4.0\example\Solr to C:\Solr

10. Copy C:\apache-solr-3.4.0\dist\apache-solr-3.4.0.war to C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\solr.war

11. Right-click on the Tomcat icon in the system tray, choose configure, Java tab, Java options, add the following line at the end:

-DSolr.Solr.home=C:\Solr

Solr_step11

12. Start Tomcat by right-clicking on the system tray and selecting “Start Service”

13. Browse to http://localhost:8080/Solr/ … You should see “Welcome to Solr”.

14. Click on “Solr Admin”.  You should see the Solr admin interface.

10 thoughts on “Installing Solr on Windows 7 x64

  1. Solr 3.5 works fine on my Windows 7 x64, I wonder what kind of problems you had with it.
    Also you might want to use the included Jetty, especially for development it’s much simpler than a Tomcat setup.

  2. With 3.5.0, I was getting some strange configuration errors in big h1 type text when trying to access the web interface, but can’t remember exactly what the exact error message was now. I’ll check out Jetty, thanks.

  3. Your post is very detailed and easy. But i am receiving an error while accessing the Solr/Admin page
    I receive the following error

    missing core name in path

    Can you help what could be the reason

  4. Hi,

    I am trying the steps but in step 14 I get this error:

    HTTP Status 404 – missing core name in path

    type Status report

    message missing core name in path

    description The requested resource (missing core name in path) is not available.

    What I did wrong?

  5. I followed the steps and got the Solr welcome page. There when I clicked I got the error “HTTP Status 404 – missing core name in path” as mentioned by some others. After some searches I found the solution. Go to “C:\Program Files\Apache Software FoundationTomcat 7.0webappssolrWEB-INF” and open the web.xml file. Uncomment the following lines –

    <env-entry>
    <env-entry-name>solr/home</env-entry-name>
    <env-entry-value>/put/your/solr/home/here</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>


    Replace “/put/your/solr/home/here” with “C:\solr”. Restart Tomcat. Now it should work. Hope this helps if you are getting the error.

  6. In my last comment, the slashes were stripped. Not sure why, guess this comment system sucks!

  7. i setup the newest version all program. Can you tell what is another steps, such as index filesystem an searching

  8. I integrated solr for magento enterprise but i am not able to see left side catalog navigation on search result plz suggest me what should i do or what i missed in installation

Leave a Reply

Your email address will not be published. Required fields are marked *

*