Apache Lucene open-source search software
SOLR-10920: _default configset warning should not appear when using -n with create_collection
Ishan Chattopadhyaya9601ea9d4be7
diff --git a/solr/bin/solr b/solr/bin/solrindex 821bbf3cbb1..eeb6da4c049 100755--- a/solr/bin/solr+++ b/solr/bin/solr@@ -978,7 +978,7 @@ if [[ "$SCRIPT_CMD" == "create" || "$SCRIPT_CMD" == "create_core" || "$SCRIPT_CMexit 1fi- if [ "$CREATE_CONFDIR" == "_default" ]; then+ if [[ "$CREATE_CONFDIR" == "_default" ]] && ([[ "$CREATE_CONFNAME" == "" ]] || [[ "$CREATE_CONFNAME" == "_default" ]]); thenecho "WARNING: Using _default configset. Data driven schema functionality is enabled by default, which is"echo " NOT RECOMMENDED for production use."echo