-
Notifications
You must be signed in to change notification settings - Fork 1
Setup Valkyrie Prototype: Installing and Running a Solr Instance
- Java SE Runtime Environment 1.8+
To check run
java -version
in the terminal
NOTES add JDK installation
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
- Start the server by using
bin/solr start
- Stop by using
bin/solr stop
. - Create a core by using
bin/solr create –c <solr_core_name>
. - 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.
In config/blacklight.yml
add the url of the solr core.
Example url: http://127.0.0.1:8983/solr/<Solr_Core_Name>
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 calledconf
,data
, and a file namedcore.property
.