Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-17528: Match PackageTool use of -y (#2813)

Eric Pugh42f8e485446c
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index a4921ec4065..ac00cf68152 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -147,6 +147,8 @@ Improvements
enqueuing with a risk of rejection. Solr will use less resources under stress but to get the most
of your machine, you may want to increase the thread pool. (David Smiley)
+* SOLR-17528: Introduce -y short option to bin/solr start --no-prompt option. Aligns with bin/solr package tool. (Eric Pugh)
+
Optimizations
---------------------
* SOLR-14985: Solrj CloudSolrClient with Solr URLs had serious performance regressions (since the
diff --git a/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java b/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
index 788a9b86dfc..95c746f82b7 100644
--- a/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
+++ b/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
@@ -94,7 +94,7 @@ public class RunExampleTool extends ToolBase {
@Override
public List<Option> getOptions() {
return List.of(
- Option.builder()
+ Option.builder("y")
.longOpt("no-prompt")
.required(false)
.desc(