Skip to content

Commit

Permalink
stop clearing out Solr on install IQSS#9573
Browse files Browse the repository at this point in the history
This was added long ago in 42692f5 when we were still indexing users!

We don't need it anymore. If people have junk in Solr they can clear
it out manually before installing Dataverse.
  • Loading branch information
pdurbin committed May 25, 2023
1 parent 9e4fcce commit 13f92f0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/api/setup-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ DV_SU_PASSWORD="admin"
DATAVERSE_URL=${DATAVERSE_URL:-"http://localhost:8080"}
# Make sure scripts we call from this one also get this env var!
export DATAVERSE_URL
SOLR_URL=${SOLR_URL:-"http://localhost:8983"}

# scripts/api when called from the root of the source tree
SCRIPT_PATH="$(dirname "$0")"
Expand Down Expand Up @@ -34,9 +33,6 @@ done

command -v jq >/dev/null 2>&1 || { echo >&2 '`jq` ("sed for JSON") is required, but not installed. Download the binary for your platform from http://stedolan.github.io/jq/ and make sure it is in your $PATH (/usr/bin/jq is fine) and executable with `sudo chmod +x /usr/bin/jq`. On Mac, you can install it with `brew install jq` if you use homebrew: http://brew.sh . Aborting.'; exit 1; }

echo "deleting all data from Solr"
curl "${SOLR_URL}/solr/collection1/update/json?commit=true" -H "Content-type: application/json" -X POST -d "{\"delete\": { \"query\":\"*:*\"}}"

# Everything + the kitchen sink, in a single script
# - Setup the metadata blocks and controlled vocabulary
# - Setup the builtin roles
Expand Down

0 comments on commit 13f92f0

Please sign in to comment.