Skip to content

Instantly share code, notes, and snippets.

@titipata
Last active January 20, 2016 02:04
Show Gist options
  • Save titipata/207291356926c6825d25 to your computer and use it in GitHub Desktop.
Save titipata/207291356926c6825d25 to your computer and use it in GitHub Desktop.

##Solr installation

not finalize yet

First change directory to solr-5.4.0 and start solr

cd /opt/solr-5.4.0
sudo ./bin/solr start -c -m 50g

Afterward, we will do start the core, something like this

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

Now, we can try adding document using post

su - solr -c "/opt/solr/bin/post -c scholarfy /home/ubuntu/scholarfy_database.csv"

To delete core that we create

bin/solr delete -c scholarfy

To stop solr (in Ubuntu),

sudo ./bin/solr stop -all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment