Managing schemas

Solr uses two schemas: listings and categories. These schemas must be uploaded to zookeeper before collections can be created.

Adding or updating schemas

SSH into the European gateway:

ssh -l root 54.229.115.35

Upload the schemas from the yellow-search project to both zookeeper instances.

cd /opt/solr-5.3.1/server/scripts/cloud-scripts

./zkcli.sh -cmd upconfig -z "crius,gaia" --confdir /opt/yellow-search/solr/listings/conf -confname listings -solrhome /opt/solr-5.3.1/
./zkcli.sh -cmd upconfig -z "crius,gaia" --confdir /opt/yellow-search/solr/categories/conf -confname categories -solrhome /opt/solr-5.3.1/