From 55de74cc45bdc20110b5f293653f64a7c074403f Mon Sep 17 00:00:00 2001 From: Joel Bernstein Date: Wed, 26 Apr 2017 22:34:20 -0400 Subject: [PATCH] SEARCH-313: Handled unescaped plus sign in gap --- .../apache/solr/client/solrj/io/stream/TimeSeriesStream.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TimeSeriesStream.java b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TimeSeriesStream.java index cdab2d0cbd7..e0761a1eb8e 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TimeSeriesStream.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TimeSeriesStream.java @@ -168,6 +168,9 @@ public class TimeSeriesStream extends TupleStream implements Expressible { this.collection = collection; this.start = start; this.gap = gap; + if(!gap.startsWith("+")) { + this.gap = "+"+gap; + } this.metrics = metrics; this.field = field; this.params = params;