You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Adapt autoSoftCommit to have a recommended value, and remove add-unknown-fields-to-the-schema
149
158
sed -i.bak '/<updateRequestProcessorChain name="add-unknown-fields-to-the-schema".*/,/<\/updateRequestProcessorChain>/d'$DESTINATION_DIR/solrconfig.xml
150
-
sed -i.bak 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/'$DESTINATION_DIR/solrconfig.xml
159
+
160
+
if [[ "$SOLR_MAJOR"=~ ^[0-9]+$ ]] && [ "$SOLR_MAJOR"-ge 9 ];then
161
+
sed -i.bak 's/${solr.autoSoftCommit.maxTime:3000}/${solr.autoSoftCommit.maxTime:20}/'$DESTINATION_DIR/solrconfig.xml
162
+
else
163
+
sed -i.bak 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/'$DESTINATION_DIR/solrconfig.xml
164
+
fi
165
+
151
166
# Configure spellcheck component
152
167
sed -i.bak 's/<str name="field">_text_<\/str>/<str name="field">meta_content__text_t<\/str>/'$DESTINATION_DIR/solrconfig.xml
0 commit comments