Skip to content

Commit

Permalink
NGSTACK-836: try to get rid of the core spellcheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Jun 10, 2024
1 parent e09c5d9 commit 7ae9b59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/init_solr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ solr_cloud_configure_collection() {
sed -i.bak '/<updateRequestProcessorChain name="add-unknown-fields-to-the-schema".*/,/<\/updateRequestProcessorChain>/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/<str name="field">_text_<\/str>/<str name="field">meta_content__text_t<\/str>/' "$TEMPLATE_DIR/solrconfig.xml"
# Add spellcheck component to /select handler
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"
}

solr_cloud_upload_collection_configuration() {
Expand Down

0 comments on commit 7ae9b59

Please sign in to comment.