mirror of https://github.com/apache/lucene.git
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:
parent
4d2bdd36d6
commit
3523efbbfe
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue