This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
solr-shard-management/solr-fix.sh
2022-07-19 21:47:40 +00:00

11 lines
210 B
Bash
Executable File

#!/bin/bash
. ./setenv.sh
ARG_SOLR_SHARD_ID=$1
if [[ ! -z "$ARG_SOLR_SHARD_ID" ]]; then
SOLR_CORE=${SOLR_CORE}-${ARG_SOLR_SHARD_ID}
fi
curl -SsL ${SOLR_BASEURL}/admin/cores?action=FIX\&core=${SOLR_CORE}