Skip to content

Setup Valkyrie Prototype: Installing and Running a Solr Instance

FCRodriguez7 edited this page Sep 13, 2019 · 21 revisions

Solr Installation

Dependency

  • Java SE Runtime Environment 1.8+

To check run java -version in the terminal

NOTES add JDK installation

1). Setup Solr

Solr = 7.7.1 : https://archive.apache.org/dist/lucene/solr/7.7.1/
Download and Install Java JDK: https://jdk.java.net

  • solr-7.7.1.tgz for Linux/Unix/OSX systems
  • solr-7.7.1.zip for Microsoft Windows systems

Extract the Solr distribution

  • tar zxvf solr-7.7.1.tgz

Solr core name= Valkyrie
In the solr-7.7.1/ directory:

Before starting Solr, check if another Solr instance is running on the localhost: ps ax | grep solr

  1. Start the server by using bin/solr start
  2. Stop by using bin/solr stop.
  3. Create a core by using bin/solr create –c <solr_core_name>.
  4. The solr server must be started to create the solr core. Also note Blacklight's default core name is blacklight-core so that's a good name to start.

2). Add solr url to the file:

In config/blacklight.yml add the url of the solr core. Example url: http://127.0.0.1:8983/solr/<Solr_Core_Name>

3). Add schema to solr server

In YaleLib_Prototype_Valkyrie/solr, copy the conf folder. Go to your solr server's directory then go to solr-7.7.1/server/solr/<solr_core_name> and replace the conf folder there with the one from the repository. Restart the server using bin/solr restart.

Note: Confirm solr-7.7.1/server/solr/<solr_core_name> contains folders called conf, data, and a file named core.property .