|
@ -71,10 +71,18 @@ if [ "${USE_SOLR-False}" == "True" ] || [ "${USE_SOLR-False}" == "true" ]; then |
|
|
echo "MAX SHARDS PER NODE: $MAX_SHARDS_PER_NODE" |
|
|
echo "MAX SHARDS PER NODE: $MAX_SHARDS_PER_NODE" |
|
|
echo "=========================================" |
|
|
echo "=========================================" |
|
|
|
|
|
|
|
|
|
|
|
echo "running solr script" |
|
|
/bin/bash check_solr.sh $SOLR_URL |
|
|
/bin/bash check_solr.sh $SOLR_URL |
|
|
|
|
|
CHECK_SOLR_RETURN=$? |
|
|
|
|
|
|
|
|
|
|
|
if [ $CHECK_SOLR_RETURN == 1 ]; then |
|
|
|
|
|
echo "Connecting to solr..." |
|
|
python3 solr_api.py -u $SOLR_URL -c $SOLR_COLLECTION -s $NUM_SHARDS -rf $RF -ms $MAX_SHARDS_PER_NODE & |
|
|
python3 solr_api.py -u $SOLR_URL -c $SOLR_COLLECTION -s $NUM_SHARDS -rf $RF -ms $MAX_SHARDS_PER_NODE & |
|
|
# python3 manage.py rebuild_index --noinput & |
|
|
# python3 manage.py rebuild_index --noinput & |
|
|
|
|
|
else |
|
|
|
|
|
echo "Solr is offline, not possible to connect." |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
else |
|
|
else |
|
|
echo "Suporte a SOLR não inicializado." |
|
|
echo "Suporte a SOLR não inicializado." |
|
|
fi |
|
|
fi |
|
|