How to install Solr 6.x with Drupal 8

This is basic how to setup & configure Solr 6.x with multicore with Drupal 8, this guide is for Ubuntu 16. I suppose that you have java 8 installed

 

1. Install requirments packages

sudo apt-get update && apt-get upgrade -y

[email protected]:~# sudo apt-get install python-software-properties

 

2. Install Solr 6.x

cd /tmp
wget http://www.us.apache.org/dist/lucene/solr/6.0.1/solr-6.0.1.tgz

 

tar xzf solr-6.0.1.tgz solr-6.0.1/bin/install_solr_service.sh --strip-components=2

 

sudo ./install_solr_service.sh solr-6.0.1.tgz

[email protected]:/tmp# sudo ./install_solr_service.sh solr-6.0.1.tgz
...

service solr status

 

3. Create Solr collection named d8

 
[email protected]:/tmp# sudo su - solr -c "/opt/solr/bin/solr create -c d7 -n d8_data"

4. Copy conf from search_api_solr to d8_data/conf


	

rsync -arvz  modules/search_api_solr/solr-conf/6.x/ /var/solr/data/d8/conf/

/etc/init.d/solr restart

Then access http://127.0.0.1:8983/solr

I will create ansible-playbook to automate this process later, thanks for reading. Reach me at https://github.com/thuannvn

Big thanks to this blog author

Latest blog

Web Analytics