Skip to content

Commit

Permalink
init_solr.sh: .bar → .bak
Browse files Browse the repository at this point in the history
Consistency w/ generate-solr-config.sh
  • Loading branch information
adriendupuis committed Sep 5, 2024
1 parent 3ee3512 commit 4d0709f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/init_solr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ solr_cloud_configure_collection() {
# Adapt autoSoftCommit to have a recommended value
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/<str name="field">_text_<\/str>/<str name="field">meta_content__text_t<\/str>/' "${TEMPLATE_DIR}/solrconfig.xml"
sed -i.bak '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"
}
Expand Down

0 comments on commit 4d0709f

Please sign in to comment.