From b5c4f8e67d2825d956d4a1feacc7e59812cfa994 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Thu, 9 Apr 2009 19:31:42 +0000 Subject: [PATCH] Add field name to term statistics git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@763778 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/search/trie/TestIntTrieRangeFilter.java | 2 +- .../org/apache/lucene/search/trie/TestLongTrieRangeFilter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/queries/src/test/org/apache/lucene/search/trie/TestIntTrieRangeFilter.java b/contrib/queries/src/test/org/apache/lucene/search/trie/TestIntTrieRangeFilter.java index 03bcf27861f..b2599954fc6 100644 --- a/contrib/queries/src/test/org/apache/lucene/search/trie/TestIntTrieRangeFilter.java +++ b/contrib/queries/src/test/org/apache/lucene/search/trie/TestIntTrieRangeFilter.java @@ -224,7 +224,7 @@ public class TestIntTrieRangeFilter extends LuceneTestCase { assertEquals("Returned count for IntTrieRangeFilter and RangeQuery must be equal", cTopDocs.totalHits, tTopDocs.totalHits ); termCount += tf.getLastNumberOfTerms(); } - System.out.println("Average number of terms during random search: " + (((double)termCount)/(50*4))); + System.out.println("Average number of terms during random search on '" + field + "': " + (((double)termCount)/(50*4))); } public void testRandomTrieAndClassicRangeQuery_8bit() throws Exception { diff --git a/contrib/queries/src/test/org/apache/lucene/search/trie/TestLongTrieRangeFilter.java b/contrib/queries/src/test/org/apache/lucene/search/trie/TestLongTrieRangeFilter.java index 18d0374510c..8ea19edd0be 100644 --- a/contrib/queries/src/test/org/apache/lucene/search/trie/TestLongTrieRangeFilter.java +++ b/contrib/queries/src/test/org/apache/lucene/search/trie/TestLongTrieRangeFilter.java @@ -224,7 +224,7 @@ public class TestLongTrieRangeFilter extends LuceneTestCase { assertEquals("Returned count for LongTrieRangeFilter and RangeQuery must be equal", cTopDocs.totalHits, tTopDocs.totalHits ); termCount += tf.getLastNumberOfTerms(); } - System.out.println("Average number of terms during random search: " + (((double)termCount)/(50*4))); + System.out.println("Average number of terms during random search on '" + field + "': " + (((double)termCount)/(50*4))); } public void testRandomTrieAndClassicRangeQuery_8bit() throws Exception {