lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [24/47] lucene-solr:jira/solr-11000: SOLR-10796: comment out debug printing
Date Thu, 13 Jul 2017 15:38:21 GMT
SOLR-10796: comment out debug printing


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

Branch: refs/heads/jira/solr-11000
Commit: 00b5930cc9066ec14cc16aa665f01dc0996e9f1f
Parents: 6188c8c
Author: Steve Rowe <sarowe@apache.org>
Authored: Wed Jul 12 11:59:15 2017 -0400
Committer: Steve Rowe <sarowe@apache.org>
Committed: Wed Jul 12 11:59:15 2017 -0400

----------------------------------------------------------------------
 .../test/org/apache/solr/schema/TestPointFields.java  | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/00b5930c/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/schema/TestPointFields.java b/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
index 83eaebd..4c8ff69 100644
--- a/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
+++ b/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
@@ -269,7 +269,7 @@ public class TestPointFields extends SolrTestCaseJ4 {
     int numValues = 10 * RANDOM_MULTIPLIER;
     // don't produce numbers with exponents, since XPath comparison operators can't handle
them
     List<Integer> values  = getRandomInts(numValues, false, 9999999);
-    System.err.println(Arrays.toString(values.toArray(new Integer[values.size()])));
+    // System.err.println(Arrays.toString(values.toArray(new Integer[values.size()])));
     List<Integer> sortedValues = values.stream().sorted().collect(Collectors.toList());
     double min = (double)sortedValues.get(0);
     double max = (double)sortedValues.get(sortedValues.size() - 1);
@@ -680,7 +680,7 @@ public class TestPointFields extends SolrTestCaseJ4 {
     // don't produce numbers with exponents, since XPath comparison operators can't handle
them: 7 digits of precision
     List<Float> values  = getRandomInts(numValues, false, 9999999).stream()
         .map(v -> (float)((double)v * Math.pow(10D, -1 * random().nextInt(8)))).collect(Collectors.toList());
-    System.err.println(Arrays.toString(values.toArray(new Float[values.size()])));
+    // System.err.println(Arrays.toString(values.toArray(new Float[values.size()])));
     List<Float> sortedValues = values.stream().sorted().collect(Collectors.toList());
     double min = (double)sortedValues.get(0);
     double max = (double)sortedValues.get(sortedValues.size() - 1);
@@ -980,7 +980,7 @@ public class TestPointFields extends SolrTestCaseJ4 {
     // don't produce numbers with exponents, since XPath comparison operators can't handle
them: 7 digits of precision
     List<Float> values  = getRandomInts(numValues, false, 9999999).stream()
         .map(v -> (float)((double)v * Math.pow(10D, -1 * random().nextInt(8)))).collect(Collectors.toList());
-    System.err.println(Arrays.toString(values.toArray(new Float[values.size()])));
+    // System.err.println(Arrays.toString(values.toArray(new Float[values.size()])));
     List<Float> sortedValues = values.stream().sorted().collect(Collectors.toList());
     double min = (double)sortedValues.get(0);
     double max = (double)sortedValues.get(sortedValues.size() - 1);
@@ -1193,14 +1193,14 @@ public class TestPointFields extends SolrTestCaseJ4 {
     int[] bucketCount = new int[numBuckets];
     int bucketNum = 0;
     long minBucketVal = min;
-    System.err.println("min:" + min + "   max: " + max + "   gap: " + gap);
-    System.err.println("bucketNum: " + bucketNum + "   minBucketVal: " + minBucketVal);
+    // System.err.println("min:" + min + "   max: " + max + "   gap: " + gap);
+    // System.err.println("bucketNum: " + bucketNum + "   minBucketVal: " + minBucketVal);
     for (Long value : sortedValues) {
-      System.err.println("value: " + value);
+      // System.err.println("value: " + value);
       while (BigInteger.valueOf(value).subtract(BigInteger.valueOf(minBucketVal)).compareTo(bigIntGap)
> 0) {
         ++bucketNum;
         minBucketVal += gap;
-        System.err.println("bucketNum: " + bucketNum + "   minBucketVal: " + minBucketVal);
+        // System.err.println("bucketNum: " + bucketNum + "   minBucketVal: " + minBucketVal);
       }
       ++bucketCount[bucketNum];
     }


Mime
View raw message