File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff 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
240245solr_cloud_upload_collection_configuration () {
You can’t perform that action at this time.
0 commit comments