Skip to content

Commit 7ae9b59

Browse files
committed
NGSTACK-836: try to get rid of the core spellcheck error
1 parent e09c5d9 commit 7ae9b59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/init_solr.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ solr_cloud_configure_collection() {
235235
sed -i.bak '/<updateRequestProcessorChain name="add-unknown-fields-to-the-schema".*/,/<\/updateRequestProcessorChain>/d' ${TEMPLATE_DIR}/solrconfig.xml
236236
# Adapt autoSoftCommit to have a recommended value
237237
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'"
238+
# This spellcheck configuration is added for regression tests
239+
# Configure spellcheck component
240+
sed -i.bar 's/<str name="field">_text_<\/str>/<str name="field">meta_content__text_t<\/str>/' "$TEMPLATE_DIR/solrconfig.xml"
241+
# Add spellcheck component to /select handler
242+
sed -i.bak 's/<requestHandler name="\/select" class="solr.SearchHandler">/<requestHandler name="\/select" class="solr.SearchHandler">\n <arr name="last-components">\n <str>spellcheck<\/str>\n <\/arr>/' "$TEMPLATE_DIR/solrconfig.xml"
238243
}
239244

240245
solr_cloud_upload_collection_configuration() {

0 commit comments

Comments
 (0)