User Tools

Site Tools


solr

This is an old revision of the document!


Solr

Install Solr

https://tecadmin.net/install-apache-solr-on-ubuntu/

Create a User and set password

curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{"set-user": {"tom" : "TomIsCool","harry":"HarrysSecret"}}'

Create Core

sudo su - solr -c "/opt/solr/bin/solr create -c mycol1 -n data_driven_schema_configs"

Basic Auth

In /etc/default/solr.in.sh set the Following:

SOLR_AUTH_TYPE="basic"
SOLR_AUTHENTICATION_OPTS="-Dbasicauth=MY_SOLR_USER:MY_PASSWORD"
solr.1518603083.txt.gz · Last modified: 2018/02/14 11:11 by admin