- If you don't have Java, install it with
sudo apt-get install openjdk-8-jre-headless
(Linux only, Mac will have to find another way) - Download latest solr distfrom http://mirror.dsrg.utoronto.ca/apache/lucene/solr/
2a. Verify the package using the
.asc
signature andKEYS
file from the official solr mirror tar xvf
into/opt
- cd into
server/solr
directory - Make a dir for your core
touch core.properties
- Copy everything from solr/configsets/basic_configs into that folder
- Add
conf
folder tobasic_configs
and configure it - Download JTS: https://repo1.maven.org/maven2/com/vividsolutions/jts-core/1.14.0/jts-core-1.14.0.jar (NOTE: If you're using Solr version 7.3 or greater, you'll need to use JTS version 1.15 from https://repo1.maven.org/maven2/org/locationtech/jts/jts-core/1.15.0/jts-core-1.15.0.jar)
- mv it into server/solr-webapp/webapp/WEB-INF/lib/
- Copy
schema.xml
file from theconfigs
folder in the sfm-cms project into server/solr//conf - Edit
solrconfig.xml
located in the folder for your core to add the following anywhere in between the<config>
tags:
<schemaFactory class="ClassicIndexSchemaFactory"/>
- cd into bin directory
- Do ./solr start
- Visit http://127.0.0.1:8983 in a browser and enjoy