You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jb...@apache.org on 2017/05/03 17:49:03 UTC
[25/36] lucene-solr:branch_6x: SEARCH-313: Handled unescaped plus
sign in gap
SEARCH-313: Handled unescaped plus sign in gap
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/7e3facc7
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/7e3facc7
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/7e3facc7
Branch: refs/heads/branch_6x
Commit: 7e3facc75ee3e713472e8eadff6fcf4c45d1d5fe
Parents: 21eeb6b
Author: Joel Bernstein <jb...@apache.org>
Authored: Wed Apr 26 22:34:20 2017 -0400
Committer: Joel Bernstein <jb...@apache.org>
Committed: Wed May 3 13:06:36 2017 -0400
----------------------------------------------------------------------
.../org/apache/solr/client/solrj/io/stream/TimeSeriesStream.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/7e3facc7/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TimeSeriesStream.java
----------------------------------------------------------------------
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 cdab2d0..e0761a1 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;