public override void SetUp() { base.SetUp(); // set the theoretical maximum term count for 8bit (see docs for the number) // super.tearDown will restore the default BooleanQuery.MaxClauseCount = 7 * 255 * 2 + 255; }