From 3ee3512b8cf5553d2310abeb9f5fae6cad01e20f Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:27:39 +0200 Subject: [PATCH 1/2] =?UTF-8?q?generate-solr-config.sh:=20.bar=20=E2=86=92?= =?UTF-8?q?=20.bak?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So line 129 can remove it. --- bin/generate-solr-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/generate-solr-config.sh b/bin/generate-solr-config.sh index 2194b022..ac7ab0fe 100755 --- a/bin/generate-solr-config.sh +++ b/bin/generate-solr-config.sh @@ -122,7 +122,7 @@ fi sed -i.bak '//d' $DESTINATION_DIR/solrconfig.xml sed -i.bak 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml # Configure spellcheck component -sed -i.bar 's/_text_<\/str>/meta_content__text_t<\/str>/' $DESTINATION_DIR/solrconfig.xml +sed -i.bak 's/_text_<\/str>/meta_content__text_t<\/str>/' $DESTINATION_DIR/solrconfig.xml # Add spellcheck component to /select handler sed -i.bak 's//\n \n spellcheck<\/str>\n <\/arr>/' $DESTINATION_DIR/solrconfig.xml From 4d0709f6ff84583abbc3fcdce69d4f85327860f5 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:28:25 +0200 Subject: [PATCH 2/2] =?UTF-8?q?init=5Fsolr.sh:=20.bar=20=E2=86=92=20.bak?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Consistency w/ generate-solr-config.sh --- .github/init_solr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/init_solr.sh b/.github/init_solr.sh index e5322392..0ae3319e 100755 --- a/.github/init_solr.sh +++ b/.github/init_solr.sh @@ -234,7 +234,7 @@ solr_cloud_configure_collection() { # Adapt autoSoftCommit to have a recommended value sed -i.bak 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' "${TEMPLATE_DIR}/solrconfig.xml" || exit_on_error "Can't modify file '${TEMPLATE_DIR}/solrconfig.xml'" # Configure spellcheck component - sed -i.bar 's/_text_<\/str>/meta_content__text_t<\/str>/' "${TEMPLATE_DIR}/solrconfig.xml" + sed -i.bak 's/_text_<\/str>/meta_content__text_t<\/str>/' "${TEMPLATE_DIR}/solrconfig.xml" # Add spellcheck component to /select handler sed -i.bak 's//\n \n spellcheck<\/str>\n <\/arr>/' "${TEMPLATE_DIR}/solrconfig.xml" }