This is an automated email from the ASF dual-hosted git repository.
epugh pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 65e8d280afe --cloud option is not honored when running example (-e) on
Windows (#4075)
65e8d280afe is described below
commit 65e8d280afee4c9d8a7edf436cb205ef21b797a8
Author: Rahul Goswami <[email protected]>
AuthorDate: Fri Jan 23 10:21:46 2026 -0500
--cloud option is not honored when running example (-e) on Windows (#4075)
Co-authored-by: Eric Pugh <[email protected]>
---
changelog/unreleased/rahulgoswami-solr_9x.yml | 4 ++++
solr/bin/solr.cmd | 1 +
2 files changed, 5 insertions(+)
diff --git a/changelog/unreleased/rahulgoswami-solr_9x.yml
b/changelog/unreleased/rahulgoswami-solr_9x.yml
new file mode 100644
index 00000000000..195916c6112
--- /dev/null
+++ b/changelog/unreleased/rahulgoswami-solr_9x.yml
@@ -0,0 +1,4 @@
+title: Fixed --cloud option is not honored when running example (-e) on
Windows in Solr CLI
+type: fixed
+authors:
+ - name: Rahul Goswami
diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmd
index aab7eb8d48b..ac67559faa5 100755
--- a/solr/bin/solr.cmd
+++ b/solr/bin/solr.cmd
@@ -510,6 +510,7 @@ goto parse_args
:set_cloud_mode
set SOLR_MODE=solrcloud
+set "PASS_TO_RUN_EXAMPLE=--cloud !PASS_TO_RUN_EXAMPLE!"
REM Notify user in 9.x about the default mode change if cloud flag is used.
@echo Solr will start in SolrCloud mode by default in version 10, and you will
no longer need to pass in -c or --cloud flag.
SHIFT