From 6b601b1c7139646a7abbe976cb5e3c76d8ca37ed Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Tue, 17 Oct 2017 16:07:57 -0400 Subject: [PATCH] improve Long/DoubleRange.toString --- .../src/java/org/apache/lucene/facet/range/DoubleRange.java | 2 +- .../facet/src/java/org/apache/lucene/facet/range/LongRange.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 50e771d7d29..0c45a82994a 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 { 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 582d76fc1de..c762342e7f1 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 {