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