Skip to content

Commit

Permalink
Skipped generating solrconfig.xml file copies in generate-solr-config.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwojs authored Nov 4, 2023
1 parent 2f8b711 commit d056a45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/generate-solr-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ else
fi

# Adapt autoSoftCommit to have a recommended value, and remove add-unknown-fields-to-the-schema
sed -i.bak '/<updateRequestProcessorChain name="add-unknown-fields-to-the-schema".*/,/<\/updateRequestProcessorChain>/d' $DESTINATION_DIR/solrconfig.xml
sed -i.bak2 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml
sed -i '/<updateRequestProcessorChain name="add-unknown-fields-to-the-schema".*/,/<\/updateRequestProcessorChain>/d' $DESTINATION_DIR/solrconfig.xml
sed -i 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml

if [ "$GENERATE_SOLR_TMPDIR" != "" ]; then
echo Removing temp dir: $GENERATE_SOLR_TMPDIR
Expand Down

0 comments on commit d056a45

Please sign in to comment.