From 76b5ca1bd5bf5a7ee375ed142493cc4bfd60726c Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Wed, 22 Jul 2020 23:46:24 +0200 Subject: [PATCH] - detailed solr index creating --- installs/SolrUbuntu.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/installs/SolrUbuntu.md b/installs/SolrUbuntu.md index 2c2b5a5..f077274 100644 --- a/installs/SolrUbuntu.md +++ b/installs/SolrUbuntu.md @@ -68,11 +68,20 @@ if pixima => pixma ``` -**Copy your model schema and solr configuration into conf folder:** +**Copy your model schema.xml and solrconfig into conf folder:** + +download the cofig files: ```bash -sudo cp /home/user/managed-schema /var/solr/data/tethys_data/conf/ -sudo cp /home/user/solrconfig.xml /var/solr/data/tethys_data/conf/ +wget https://raw.githubusercontent.com/geolba/tethys-search/master/schema.xml +wget https://raw.githubusercontent.com/geolba/tethys-search/master/solrconfig.xml +``` + +move them into the conf directory: + +```bash +sudo mv /home/user/schema.xml /var/solr/data/tethys_data/conf/ +sudo mv /home/user/solrconfig.xml /var/solr/data/tethys_data/conf/ ``` **Grant folder permissions for solr user**\ @@ -84,6 +93,9 @@ sudo cp /home/user/solrconfig.xml /var/solr/data/tethys_data/conf/ Output Will be:\ Created new core 'tethys_data' +delete your solr index:\ +`sudo su - solr -c "/opt/solr/bin/solr delete -c tethys_data"` + ## Manage Solr service ```bash