Skip to content

Apache Lucene open-source search software

SOLR-8443: Change /stream handler http param from stream to expr

Joel Bernstein60a5da24eb18
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index b7073e7e920..d3dabd0409b 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -196,6 +196,8 @@ Other Changes
* SOLR-8426: Enable /export, /stream and /sql handlers by default and remove them from example configs. (shalin)
+* SOLR-8443: Change /stream handler http param from "stream" to "expr" (Joel Bernstein, Dennis Gove)
+
======================= 5.5.0 =======================
diff --git a/solr/core/src/java/org/apache/solr/handler/StreamHandler.java b/solr/core/src/java/org/apache/solr/handler/StreamHandler.java
index 52c377803fd..20c8c2d7ab3 100644
--- a/solr/core/src/java/org/apache/solr/handler/StreamHandler.java
+++ b/solr/core/src/java/org/apache/solr/handler/StreamHandler.java
@@ -152,7 +152,7 @@ public class StreamHandler extends RequestHandlerBase implements SolrCoreAware {
TupleStream tupleStream = null;
try {
- tupleStream = this.streamFactory.constructStream(params.get("stream"));
+ tupleStream = this.streamFactory.constructStream(params.get("expr"));
} catch (Exception e) {
//Catch exceptions that occur while the stream is being created. This will include streaming expression parse rules.
SolrException.log(logger, e);
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/ParallelStream.java b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/ParallelStream.java
index 6c43a14aea5..93efecb366b 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/ParallelStream.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/ParallelStream.java
@@ -257,7 +257,7 @@ public class ParallelStream extends CloudSolrStream implements Expressible {
params.put("distrib","false"); // We are the aggregator.
params.put("numWorkers", workers);
params.put("workerID", w);
- params.put("stream", pushStream);
+ params.put("expr", pushStream);
params.put("qt","/stream");
Replica rep = shuffler.get(w);
ZkCoreNodeProps zkProps = new ZkCoreNodeProps(rep);