lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject lucene-solr:master: improve Long/DoubleRange.toString
Date Tue, 17 Oct 2017 20:08:06 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 6fefcfa18 -> 6b601b1c7


improve Long/DoubleRange.toString


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/6b601b1c
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/6b601b1c
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/6b601b1c

Branch: refs/heads/master
Commit: 6b601b1c7139646a7abbe976cb5e3c76d8ca37ed
Parents: 6fefcfa
Author: Mike McCandless <mikemccand@apache.org>
Authored: Tue Oct 17 16:07:57 2017 -0400
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Tue Oct 17 16:07:57 2017 -0400

----------------------------------------------------------------------
 .../facet/src/java/org/apache/lucene/facet/range/DoubleRange.java  | 2 +-
 lucene/facet/src/java/org/apache/lucene/facet/range/LongRange.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/6b601b1c/lucene/facet/src/java/org/apache/lucene/facet/range/DoubleRange.java
----------------------------------------------------------------------
diff --git a/lucene/facet/src/java/org/apache/lucene/facet/range/DoubleRange.java b/lucene/facet/src/java/org/apache/lucene/facet/range/DoubleRange.java
index 50e771d..0c45a82 100644
--- a/lucene/facet/src/java/org/apache/lucene/facet/range/DoubleRange.java
+++ b/lucene/facet/src/java/org/apache/lucene/facet/range/DoubleRange.java
@@ -88,7 +88,7 @@ public final class DoubleRange extends Range {
 
   @Override
   public String toString() {
-    return "DoubleRange(" + min + " to " + max + ")";
+    return "DoubleRange(" + label + ": " + min + " to " + max + ")";
   }
 
   private static class ValueSourceQuery extends Query {

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/6b601b1c/lucene/facet/src/java/org/apache/lucene/facet/range/LongRange.java
----------------------------------------------------------------------
diff --git a/lucene/facet/src/java/org/apache/lucene/facet/range/LongRange.java b/lucene/facet/src/java/org/apache/lucene/facet/range/LongRange.java
index 582d76f..c762342 100644
--- a/lucene/facet/src/java/org/apache/lucene/facet/range/LongRange.java
+++ b/lucene/facet/src/java/org/apache/lucene/facet/range/LongRange.java
@@ -80,7 +80,7 @@ public final class LongRange extends Range {
 
   @Override
   public String toString() {
-    return "LongRange(" + min + " to " + max + ")";
+    return "LongRange(" + label + ": " + min + " to " + max + ")";
   }
 
   private static class ValueSourceQuery extends Query {


Mime
View raw message