diff --git a/bin/init_solr.sh b/bin/init_solr.sh index af3d51db..15a5a838 100755 --- a/bin/init_solr.sh +++ b/bin/init_solr.sh @@ -235,6 +235,11 @@ 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'" + # This spellcheck configuration is added for regression tests + # Configure spellcheck component + sed -i.bar '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" } solr_cloud_upload_collection_configuration() {