Apache Solr is an enterprise search platform from Apache Lucene. It can be run as a Windows Service using FireDaemon Pro, which allows you to have the script start automatically at boot prior to login, start multiple instances of the script and more. This HOWTO will show you how to set it up. You can also use FireDaemon Fusion to manage FireDaemon and other Windows services via a web browser.

Apache Solr Setup Under FireDaemon Pro

Download the latest version of Apache Solr from the official website.

Extract the .zip file to the directory of your choice. For the purposes of this HOWTO we will use C:\solr-6.0.0

Download and install FireDaemon Pro into the directory of your choice, typically C:\Program Files\FireDaemon.

Next start the FireDaemon GUI from the desktop shortcut. Click on the "Create a new service definition" button in the toolbar (or type Ctrl+N) and enter the information into the fields as you see below. Adjust the paths to suit your installation. Note the required parameters.

For Executable, enter the path to the solr.cmd file. In this case, the path is C:\solr-6.0.0\bin\solr.cmd

For Working Directory, enter the path to the directory that contains solr.cmd. Here, that is C:\solr-6.0.0\bin

For Parameters, enter start.

Now click on the Settings tab. If you DON'T want to see Apache Solr running, uncheck the Interact with Desktop check box & select "Hidden" from the "Show Window" dropdown. You must run Apache Solr as as the user you installed it as. In the Logon Account field type your username (e.g. Administrator) and then enter the user's password twice in the Password and Confirm fields. You can also change the Process Priority to allocate more CPU time to Apache Solr or specify which CPU or core Apache Solr will run on (in the case of multi-processor, hyperthreaded or multi-core CPUs).

Now click on the Lifecycle tab. Uncheck Graceful Shutdown as it can slow the shutdown of Apache Solr. Make sure Console Application is checked.

Now click OK to finish setup and start Apache Solr! You can access Apache Solr's web interface by visiting http://localhost:8983.