source: other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-solr-delete-collection.sh

Last change on this file was 31466, checked in by davidb, 7 years ago

Fix to work out solr_host rather than assume it is gc0

  • Property svn:executable set to *
File size: 228 bytes
Line 
1#!/bin/bash
2
3solr_num_shards=`echo $SOLR_NODES | wc -w`
4solr_node_head=`echo $SOLR_NODES | tr ' ' '\n' | head -n 1`
5solr_host=${solr_node_head%:*}
6
7solr_col=${1:-htrc-full-ef}
8
9ssh $solr_host \
10 solr delete \
11 -c $solr_col
Note: See TracBrowser for help on using the repository browser.