From 1eff3616fc1f7b593b272aedb737573bf6a54164 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/generate-solr-config.sh b/bin/generate-solr-config.sh index ab986946..b3547295 100755 --- a/bin/generate-solr-config.sh +++ b/bin/generate-solr-config.sh @@ -121,6 +121,10 @@ 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.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 +# Add spellcheck component to /select handler +sed -i.bak 's//\n \n spellcheck<\/str>\n <\/arr>/' $DESTINATION_DIR/solrconfig.xml rm $DESTINATION_DIR/solrconfig.xml.bak