Skip to content

Instantly share code, notes, and snippets.

@u10313335
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save u10313335/1cd42194992c501fe5c6 to your computer and use it in GitHub Desktop.
Save u10313335/1cd42194992c501fe5c6 to your computer and use it in GitHub Desktop.
Install Solr 5 for CKAN 2.3
  • 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, and protwords.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment