Fix AIOOBE in TestRandomSamplingFacetsCollector.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1691915 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2015-07-20 12:03:01 +00:00
parent 4d2bdd36d6
commit 3523efbbfe
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ public class TestRandomSamplingFacetsCollector extends FacetTestCase {
doc.add(new FacetField("iMod10", Integer.toString(i % numCategories))); doc.add(new FacetField("iMod10", Integer.toString(i % numCategories)));
writer.addDocument(config.build(taxoWriter, doc)); writer.addDocument(config.build(taxoWriter, doc));
} }
writer.forceMerge(CHI_SQUARE_VALUES.length - 1);
// NRT open // NRT open
IndexSearcher searcher = newSearcher(writer.getReader()); IndexSearcher searcher = newSearcher(writer.getReader());