From 3523efbbfe454b281d20082b9846661a757ce3d6 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Mon, 20 Jul 2015 12:03:01 +0000 Subject: [PATCH] Fix AIOOBE in TestRandomSamplingFacetsCollector. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1691915 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/facet/TestRandomSamplingFacetsCollector.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lucene/facet/src/test/org/apache/lucene/facet/TestRandomSamplingFacetsCollector.java b/lucene/facet/src/test/org/apache/lucene/facet/TestRandomSamplingFacetsCollector.java index 5be46bbdd14..cf9d316782a 100644 --- a/lucene/facet/src/test/org/apache/lucene/facet/TestRandomSamplingFacetsCollector.java +++ b/lucene/facet/src/test/org/apache/lucene/facet/TestRandomSamplingFacetsCollector.java @@ -68,6 +68,7 @@ public class TestRandomSamplingFacetsCollector extends FacetTestCase { doc.add(new FacetField("iMod10", Integer.toString(i % numCategories))); writer.addDocument(config.build(taxoWriter, doc)); } + writer.forceMerge(CHI_SQUARE_VALUES.length - 1); // NRT open IndexSearcher searcher = newSearcher(writer.getReader());