Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Make sure you have Java Runtime installed according to this: http://lucene.apache.org/solr/4_10_3/SYSTEM_REQUIREMENTS.html. Unless you know specifically otherwise choose the latest version of the 64-bit Java RTE from http://www.java.com.
  2. Download the Solr installation zip file from the Solr homepage:

Now that you have Java Runtime installed and you have downloaded the Solr zip file, it's time to move on to the next steps:

...

  1. Java –jar start.jar
  2. Check that Solr is accessible at:
    http://localhost:8983/solr/
  3. Exit the command prompt with ctrl + C.

...

  1. contexts
  2. etc
  3. lib
  4. logs
  5. resources
  6. webapps
  7. start.jar

...

  1. Java -Dsolr.solr.home=.. -jar start.jar
  2. Check that Solr is accessible at:
    http://localhost:8983/solr/
  3. Exit the command prompt with ctrl + c.

...

Code Block
linenumberstrue
SolrService.exe //IS//SolrService --DisplayName="Solr Service" --Install=SOLR_SERVICE_DIR\jetty\SolrService.exe --LogPath=SOLR_SERVICE_DIR\jetty\logs --LogLevel=Debug --StdOutput=auto --StdError=auto --StartMode=java --StopMode=java --Jvm=auto ++JvmOptions=-Djetty.home=SOLR_SERVICE_DIR\jetty ++JvmOptions=-DSTOP.PORT=8087 ++JvmOptions=-DSTOP.KEY=stopsolr ++JvmOptions=-Djetty.logs=SOLR_SERVICE_DIR\jetty\logs ++JvmOptions=-Dorg.eclipse.jetty.util.log.SOURCE=true ++JvmOptions=-Xms768M ++JvmOptions=-Xmx8000M --Classpath=SOLR_SERVICE_DIR\jetty\start.jar --StartClass=org.eclipse.jetty.start.Main ++StartParams=OPTION=ALL ++StartParams=SOLR_SERVICE_DIR\jetty\etc\jetty.xml --StopClass=org.eclipse.jetty.start.Main ++StopParams=--stop ++JvmOptions=-Dsolr.solr.home=SOLR_SERVICE_DIR --StartPath=SOLR_SERVICE_DIR\jetty

...

Optional: save the command as "installSolrService.cmd" so it can be easily edited and reinstalled with changed parameters later.

...

Info: the service can be uninstalled from the same command prompt with the command "sc delete SolrService".

...

Run the service:

  1. Start it from the Services control panel or SolrService.exe start from command prompt.
  2. Check the log files in the log subfolder, specifically commons-daemon.<date>.log for messages.
  3. If there is an error message, run serviceui\SolrService.exe and try to correct possible problems. An account that runs the service may need to switch to one with full access to the folders (e.g. administrator).
  4. If the service stays in "starting" mode it is either misconfigured, JAVA_HOME is not set or you trying to run it with a 32-bit java. You have to kill the process manually.
  5. The success criteria here is being able to access Solr Web Admin UI from http://localhost:8983/solr

...

1.1 Directory structure

The final folder structure should look like this:

...

  • contexts
  • etc
  • lib
  • logs
  • resources
  • serviceui
  • solr-webapp
  • webapps

...

Solr is installed using Bitnami's Solr installation package. The installation package is available on the internal software servers in Digizuite.

The installer is an executable, that’ll install everything you need.

Once installed, you need to note two things:

  • URL to Solr

  • UNC to Solr directory

The latter is where the physical index files are stored. The default is the below path:

Info

C:\Bitnami\solr-8.3.1-1\apache-solr\server\solr

The Bitnami folder should not be placed in C-drive. Place it in the drive where the rest of the Digizuite configuration is done.
The path can be changed when installing Solr (see image below as an example).

...

These are used to configure the Digizuite and should be used in the web.config.

Post-installation

Once Solr is installed, it is very important to disable the Username/password authentication on Solr, as the Digizuite API does not support that.

This can be done using the following steps:

  1. Stop SolrServices (SolrJetty/SolrApache)

  2. open the Solr config file (Default: C:\Bitnami\solr-8.3.1-1\apache-solr\conf\solr.conf)

  3. Remove the LocationMatch section entirely and save

  4. Start SolrServices