From c29f462fc0f7afcc1b83ee63c7cf8798a26b1871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Tue, 5 Dec 2023 07:55:40 +0100 Subject: [PATCH] fixup! IBX-6649: Added support for spell checking --- .github/init_solr.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/init_solr.sh b/.github/init_solr.sh index f441b693..f21b4a9e 100755 --- a/.github/init_solr.sh +++ b/.github/init_solr.sh @@ -232,7 +232,11 @@ solr_cloud_configure_collection() { # modify solrconfig.xml to remove section that doesn't agree with our schema 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'" + sed -i.bak '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>/' "${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() {