diff --git a/bin/init_solr.sh b/bin/init_solr.sh index af3d51db..b668a2af 100755 --- a/bin/init_solr.sh +++ b/bin/init_solr.sh @@ -235,6 +235,10 @@ solr_cloud_configure_collection() { sed -i.bak '//d' ${TEMPLATE_DIR}/solrconfig.xml # Adapt autoSoftCommit to have a recommended value sed -i.bak2 '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>/' $DESTINATION_DIR/solrconfig.xml + # Add spellcheck component to /select handler + sed -i.bak 's//\n \n spellcheck<\/str>\n <\/arr>/' $DESTINATION_DIR/solrconfig.xml } solr_cloud_upload_collection_configuration() {