- Install solr 5.1.0:
Ref: https://www.digitalocean.com/community/tutorials/how-to-install-solr-5-2-1-on-ubuntu-14-04
- Create the configset folder:
sudo -u solr mkdir -p /var/solr/data/configsets/ckan/conf
- Create a symlink to the CKAN schema file:
sudo ln -s /usr/lib/ckan/default/src/ckan/ckan/config/solr/schema.xml /var/solr/data/configsets/ckan/conf/schema.xml
- Copy example
solrconfig.xml
,synonyms.txt
, andprotwords.txt
to the configset folder: (Ex.)
sudo -u solr cp /opt/solr/server/solr/configsets/basic_configs/conf/solrconfig.xml /var/solr/data/configsets/ckan/conf/.
-
(If needed) Copy
mmseg4j 2.3.0+
,JTS 1.13
, or other desired libs to/opt/solr/server/solr-webapp/webapp/WEB-INF/lib
-
Restart solr:
sudo service solr restart
- Enter the following URL in your browser:
http://YOUR_SOLR_IP/solr/admin/cores?action=CREATE&name=ckan&configSet=ckan