From 4756f6ffc722c2d9dbf661fb4acd96cc0bd069b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Sat, 4 Nov 2023 15:51:34 +0100 Subject: [PATCH] fixup! IBX-6649: Added support for spell checking --- bin/generate-solr-config.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/generate-solr-config.sh b/bin/generate-solr-config.sh index cb51ee84..5bce5e70 100755 --- a/bin/generate-solr-config.sh +++ b/bin/generate-solr-config.sh @@ -119,8 +119,12 @@ else fi # Adapt autoSoftCommit to have a recommended value, and remove add-unknown-fields-to-the-schema -sed -i.bak '//d' $DESTINATION_DIR/solrconfig.xml -sed -i.bak2 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml +sed -i '//d' $DESTINATION_DIR/solrconfig.xml +sed -i 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml +# Configure spellcheck component +sed -i 's/_text_<\/str>/meta_content__text_t<\/str>/' $DESTINATION_DIR/solrconfig.xml +# Add spellcheck component to /select handler +sed -i 's//\n \n spellcheck<\/str>\n <\/arr>/' $DESTINATION_DIR/solrconfig.xml if [ "$GENERATE_SOLR_TMPDIR" != "" ]; then echo Removing temp dir: $GENERATE_SOLR_TMPDIR