From a7baf1cd9f8db0fac11c92a3bdedb543efe1eaf1 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Thu, 23 Aug 2012 22:05:54 +0000 Subject: [PATCH] LUCENE-3892: put blockpostingsformat into the oven (thanks clover) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1376722 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/index/RandomCodec.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/RandomCodec.java b/lucene/test-framework/src/java/org/apache/lucene/index/RandomCodec.java index 9bc4856a360..a34b8c19f2b 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/index/RandomCodec.java +++ b/lucene/test-framework/src/java/org/apache/lucene/index/RandomCodec.java @@ -29,6 +29,7 @@ import java.util.Set; import org.apache.lucene.codecs.PostingsFormat; import org.apache.lucene.codecs.asserting.AssertingPostingsFormat; +import org.apache.lucene.codecs.block.BlockPostingsFormat; import org.apache.lucene.codecs.bloom.TestBloomFilteredLucene40Postings; import org.apache.lucene.codecs.lucene40.Lucene40Codec; import org.apache.lucene.codecs.lucene40.Lucene40PostingsFormat; @@ -94,6 +95,7 @@ public class RandomCodec extends Lucene40Codec { add(avoidCodecs, new Lucene40PostingsFormat(minItemsPerBlock, maxItemsPerBlock), + new BlockPostingsFormat(minItemsPerBlock, maxItemsPerBlock), new DirectPostingsFormat(LuceneTestCase.rarely(random) ? 1 : (LuceneTestCase.rarely(random) ? Integer.MAX_VALUE : maxItemsPerBlock), LuceneTestCase.rarely(random) ? 1 : (LuceneTestCase.rarely(random) ? Integer.MAX_VALUE : lowFreqCutoff)), new Pulsing40PostingsFormat(1 + random.nextInt(20), minItemsPerBlock, maxItemsPerBlock),