blob: ee38e943d11e517a4c95a2ae49dfe68e3456162f [file] [log] [blame]
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class TestUtil
| Apache Lucene.NET 4.8.0-beta00010 Documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class TestUtil
| Apache Lucene.NET 4.8.0-beta00010 Documentation ">
<meta name="generator" content="docfx 2.56.0.0">
<link rel="shortcut icon" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/favicon.ico">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.css">
<meta property="docfx:navrel" content="toc.html">
<meta property="docfx:tocrel" content="test-framework/toc.html">
<meta property="docfx:rel" content="https://lucenenet.apache.org/docs/4.8.0-beta00009/">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<img id="logo" class="svg" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/lucene-net-color.png" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search">
<ul class="level0 breadcrumb">
<li>
<a href="https://lucenenet.apache.org/docs/4.8.0-beta00009/">API</a>
<span id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</span>
</li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list"></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="Lucene.Net.Util.TestUtil">
<h1 id="Lucene_Net_Util_TestUtil" data-uid="Lucene.Net.Util.TestUtil" class="text-break">Class TestUtil
</h1>
<div class="markdown level0 summary"><p>General utility methods for Lucene unit tests.</p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><span class="xref">TestUtil</span></div>
</div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<span class="xref">System.Object.Equals(System.Object)</span>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.GetHashCode()</span>
</div>
<div>
<span class="xref">System.Object.GetType()</span>
</div>
<div>
<span class="xref">System.Object.MemberwiseClone()</span>
</div>
<div>
<span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.ToString()</span>
</div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="Lucene.Net.Util.html">Lucene.Net.Util</a></h6>
<h6><strong>Assembly</strong>: Lucene.Net.TestFramework.dll</h6>
<h5 id="Lucene_Net_Util_TestUtil_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class TestUtil</code></pre>
</div>
<h3 id="fields">Fields
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_WHITESPACE_CHARACTERS.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.WHITESPACE_CHARACTERS%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1440">View Source</a>
</span>
<h4 id="Lucene_Net_Util_TestUtil_WHITESPACE_CHARACTERS" data-uid="Lucene.Net.Util.TestUtil.WHITESPACE_CHARACTERS">WHITESPACE_CHARACTERS</h4>
<div class="markdown level1 summary"><p>List of characters that match <span class="xref">System.Char.IsWhiteSpace(System.Char)</span>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static readonly char[] WHITESPACE_CHARACTERS</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Char</span>[]</td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_AlwaysDocValuesFormat_Lucene_Net_Codecs_DocValuesFormat_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.AlwaysDocValuesFormat(Lucene.Net.Codecs.DocValuesFormat)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L906">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_AlwaysDocValuesFormat_" data-uid="Lucene.Net.Util.TestUtil.AlwaysDocValuesFormat*"></a>
<h4 id="Lucene_Net_Util_TestUtil_AlwaysDocValuesFormat_Lucene_Net_Codecs_DocValuesFormat_" data-uid="Lucene.Net.Util.TestUtil.AlwaysDocValuesFormat(Lucene.Net.Codecs.DocValuesFormat)">AlwaysDocValuesFormat(DocValuesFormat)</h4>
<div class="markdown level1 summary"><p>Return a <span class="xref">Lucene.Net.Codecs.Codec</span> that can read any of the
default codecs and formats, but always writes in the specified
format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Codec AlwaysDocValuesFormat(DocValuesFormat format)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Codecs.DocValuesFormat</span></td>
<td><span class="parametername">format</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Codecs.Codec</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_AlwaysPostingsFormat_Lucene_Net_Codecs_PostingsFormat_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.AlwaysPostingsFormat(Lucene.Net.Codecs.PostingsFormat)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L874">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_AlwaysPostingsFormat_" data-uid="Lucene.Net.Util.TestUtil.AlwaysPostingsFormat*"></a>
<h4 id="Lucene_Net_Util_TestUtil_AlwaysPostingsFormat_Lucene_Net_Codecs_PostingsFormat_" data-uid="Lucene.Net.Util.TestUtil.AlwaysPostingsFormat(Lucene.Net.Codecs.PostingsFormat)">AlwaysPostingsFormat(PostingsFormat)</h4>
<div class="markdown level1 summary"><p>Return a <span class="xref">Lucene.Net.Codecs.Codec</span> that can read any of the
default codecs and formats, but always writes in the specified
format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Codec AlwaysPostingsFormat(PostingsFormat format)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Codecs.PostingsFormat</span></td>
<td><span class="parametername">format</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Codecs.Codec</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_AnyFilesExceptWriteLock_Lucene_Net_Store_Directory_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.AnyFilesExceptWriteLock(Lucene.Net.Store.Directory)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L984">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_AnyFilesExceptWriteLock_" data-uid="Lucene.Net.Util.TestUtil.AnyFilesExceptWriteLock*"></a>
<h4 id="Lucene_Net_Util_TestUtil_AnyFilesExceptWriteLock_Lucene_Net_Store_Directory_" data-uid="Lucene.Net.Util.TestUtil.AnyFilesExceptWriteLock(Lucene.Net.Store.Directory)">AnyFilesExceptWriteLock(Directory)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool AnyFilesExceptWriteLock(Directory dir)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Store.Directory</span></td>
<td><span class="parametername">dir</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_AssertAttributeReflection_Lucene_Net_Util_Attribute_System_Collections_Generic_IDictionary_System_String_System_Object__.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.AssertAttributeReflection(Lucene.Net.Util.Attribute%2CSystem.Collections.Generic.IDictionary%7BSystem.String%2CSystem.Object%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1030">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_AssertAttributeReflection_" data-uid="Lucene.Net.Util.TestUtil.AssertAttributeReflection*"></a>
<h4 id="Lucene_Net_Util_TestUtil_AssertAttributeReflection_Lucene_Net_Util_Attribute_System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="Lucene.Net.Util.TestUtil.AssertAttributeReflection(Lucene.Net.Util.Attribute,System.Collections.Generic.IDictionary{System.String,System.Object})">AssertAttributeReflection(Attribute, IDictionary&lt;String, Object&gt;)</h4>
<div class="markdown level1 summary"><p>Checks some basic behaviour of an <span class="xref">Lucene.Net.Util.Attribute</span>. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void AssertAttributeReflection(Attribute att, IDictionary&lt;string, object&gt; reflectedValues)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Util.Attribute</span></td>
<td><span class="parametername">att</span></td>
<td><p><span class="xref">Lucene.Net.Util.Attribute</span> to reflect</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Collections.Generic.IDictionary</span>&lt;<span class="xref">System.String</span>, <span class="xref">System.Object</span>&gt;</td>
<td><span class="parametername">reflectedValues</span></td>
<td><p>Contains a <span class="xref">System.Collections.Generic.IDictionary&lt;TKey, TValue&gt;</span> with &quot;AttributeSubclassType/key&quot; as values.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_AssertEquals_Lucene_Net_Search_TopDocs_Lucene_Net_Search_TopDocs_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.AssertEquals(Lucene.Net.Search.TopDocs%2CLucene.Net.Search.TopDocs)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1061">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_AssertEquals_" data-uid="Lucene.Net.Util.TestUtil.AssertEquals*"></a>
<h4 id="Lucene_Net_Util_TestUtil_AssertEquals_Lucene_Net_Search_TopDocs_Lucene_Net_Search_TopDocs_" data-uid="Lucene.Net.Util.TestUtil.AssertEquals(Lucene.Net.Search.TopDocs,Lucene.Net.Search.TopDocs)">AssertEquals(TopDocs, TopDocs)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void AssertEquals(TopDocs expected, TopDocs actual)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Search.TopDocs</span></td>
<td><span class="parametername">expected</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">Lucene.Net.Search.TopDocs</span></td>
<td><span class="parametername">actual</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_BytesToCharSequence_Lucene_Net_Util_BytesRef_System_Random_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.BytesToCharSequence(Lucene.Net.Util.BytesRef%2CSystem.Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1217">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_BytesToCharSequence_" data-uid="Lucene.Net.Util.TestUtil.BytesToCharSequence*"></a>
<h4 id="Lucene_Net_Util_TestUtil_BytesToCharSequence_Lucene_Net_Util_BytesRef_System_Random_" data-uid="Lucene.Net.Util.TestUtil.BytesToCharSequence(Lucene.Net.Util.BytesRef,System.Random)">BytesToCharSequence(BytesRef, Random)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ICharSequence BytesToCharSequence(BytesRef ref, Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Util.BytesRef</span></td>
<td><span class="parametername">ref</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">J2N.Text.ICharSequence</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_CheckIndex_Lucene_Net_Store_Directory_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.CheckIndex(Lucene.Net.Store.Directory)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L192">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_CheckIndex_" data-uid="Lucene.Net.Util.TestUtil.CheckIndex*"></a>
<h4 id="Lucene_Net_Util_TestUtil_CheckIndex_Lucene_Net_Store_Directory_" data-uid="Lucene.Net.Util.TestUtil.CheckIndex(Lucene.Net.Store.Directory)">CheckIndex(Directory)</h4>
<div class="markdown level1 summary"><p>This runs the <span class="xref">Lucene.Net.Index.CheckIndex</span> tool on the index in. If any
issues are hit, an <span class="xref">System.Exception</span> is thrown; else,
true is returned.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static CheckIndex.Status CheckIndex(Directory dir)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Store.Directory</span></td>
<td><span class="parametername">dir</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Index.CheckIndex.Status</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_CheckIndex_Lucene_Net_Store_Directory_System_Boolean_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.CheckIndex(Lucene.Net.Store.Directory%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L197">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_CheckIndex_" data-uid="Lucene.Net.Util.TestUtil.CheckIndex*"></a>
<h4 id="Lucene_Net_Util_TestUtil_CheckIndex_Lucene_Net_Store_Directory_System_Boolean_" data-uid="Lucene.Net.Util.TestUtil.CheckIndex(Lucene.Net.Store.Directory,System.Boolean)">CheckIndex(Directory, Boolean)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static CheckIndex.Status CheckIndex(Directory dir, bool crossCheckTermVectors)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Store.Directory</span></td>
<td><span class="parametername">dir</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">crossCheckTermVectors</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Index.CheckIndex.Status</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_CheckReader_Lucene_Net_Index_AtomicReader_System_Boolean_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.CheckReader(Lucene.Net.Index.AtomicReader%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L234">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_CheckReader_" data-uid="Lucene.Net.Util.TestUtil.CheckReader*"></a>
<h4 id="Lucene_Net_Util_TestUtil_CheckReader_Lucene_Net_Index_AtomicReader_System_Boolean_" data-uid="Lucene.Net.Util.TestUtil.CheckReader(Lucene.Net.Index.AtomicReader,System.Boolean)">CheckReader(AtomicReader, Boolean)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void CheckReader(AtomicReader reader, bool crossCheckTermVectors)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Index.AtomicReader</span></td>
<td><span class="parametername">reader</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">crossCheckTermVectors</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_CheckReader_Lucene_Net_Index_IndexReader_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.CheckReader(Lucene.Net.Index.IndexReader)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L226">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_CheckReader_" data-uid="Lucene.Net.Util.TestUtil.CheckReader*"></a>
<h4 id="Lucene_Net_Util_TestUtil_CheckReader_Lucene_Net_Index_IndexReader_" data-uid="Lucene.Net.Util.TestUtil.CheckReader(Lucene.Net.Index.IndexReader)">CheckReader(IndexReader)</h4>
<div class="markdown level1 summary"><p>This runs the <span class="xref">Lucene.Net.Index.CheckIndex</span> tool on the <span class="xref">Lucene.Net.Index.IndexReader</span>. If any
issues are hit, an <span class="xref">System.Exception</span> is thrown.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void CheckReader(IndexReader reader)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Index.IndexReader</span></td>
<td><span class="parametername">reader</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_CloneDocument_Lucene_Net_Documents_Document_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.CloneDocument(Lucene.Net.Documents.Document)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1088">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_CloneDocument_" data-uid="Lucene.Net.Util.TestUtil.CloneDocument*"></a>
<h4 id="Lucene_Net_Util_TestUtil_CloneDocument_Lucene_Net_Documents_Document_" data-uid="Lucene.Net.Util.TestUtil.CloneDocument(Lucene.Net.Documents.Document)">CloneDocument(Document)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Document CloneDocument(Document doc1)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Documents.Document</span></td>
<td><span class="parametername">doc1</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Documents.Document</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_Docs_System_Random_Lucene_Net_Index_IndexReader_System_String_Lucene_Net_Util_BytesRef_Lucene_Net_Util_IBits_Lucene_Net_Index_DocsEnum_Lucene_Net_Index_DocsFlags_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.Docs(System.Random%2CLucene.Net.Index.IndexReader%2CSystem.String%2CLucene.Net.Util.BytesRef%2CLucene.Net.Util.IBits%2CLucene.Net.Index.DocsEnum%2CLucene.Net.Index.DocsFlags)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1156">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_Docs_" data-uid="Lucene.Net.Util.TestUtil.Docs*"></a>
<h4 id="Lucene_Net_Util_TestUtil_Docs_System_Random_Lucene_Net_Index_IndexReader_System_String_Lucene_Net_Util_BytesRef_Lucene_Net_Util_IBits_Lucene_Net_Index_DocsEnum_Lucene_Net_Index_DocsFlags_" data-uid="Lucene.Net.Util.TestUtil.Docs(System.Random,Lucene.Net.Index.IndexReader,System.String,Lucene.Net.Util.BytesRef,Lucene.Net.Util.IBits,Lucene.Net.Index.DocsEnum,Lucene.Net.Index.DocsFlags)">Docs(Random, IndexReader, String, BytesRef, IBits, DocsEnum, DocsFlags)</h4>
<div class="markdown level1 summary"><p>Returns a <span class="xref">Lucene.Net.Index.DocsEnum</span>, but randomly sometimes uses a
<span class="xref">Lucene.Net.Index.MultiDocsEnum</span>, <span class="xref">Lucene.Net.Index.DocsAndPositionsEnum</span>. Returns null
if field/term doesn&apos;t exist.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static DocsEnum Docs(Random random, IndexReader r, string field, BytesRef term, IBits liveDocs, DocsEnum reuse, DocsFlags flags)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">Lucene.Net.Index.IndexReader</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">field</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">Lucene.Net.Util.BytesRef</span></td>
<td><span class="parametername">term</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">Lucene.Net.Util.IBits</span></td>
<td><span class="parametername">liveDocs</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">Lucene.Net.Index.DocsEnum</span></td>
<td><span class="parametername">reuse</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">Lucene.Net.Index.DocsFlags</span></td>
<td><span class="parametername">flags</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Index.DocsEnum</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_Docs_System_Random_Lucene_Net_Index_TermsEnum_Lucene_Net_Util_IBits_Lucene_Net_Index_DocsEnum_Lucene_Net_Index_DocsFlags_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.Docs(System.Random%2CLucene.Net.Index.TermsEnum%2CLucene.Net.Util.IBits%2CLucene.Net.Index.DocsEnum%2CLucene.Net.Index.DocsFlags)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1175">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_Docs_" data-uid="Lucene.Net.Util.TestUtil.Docs*"></a>
<h4 id="Lucene_Net_Util_TestUtil_Docs_System_Random_Lucene_Net_Index_TermsEnum_Lucene_Net_Util_IBits_Lucene_Net_Index_DocsEnum_Lucene_Net_Index_DocsFlags_" data-uid="Lucene.Net.Util.TestUtil.Docs(System.Random,Lucene.Net.Index.TermsEnum,Lucene.Net.Util.IBits,Lucene.Net.Index.DocsEnum,Lucene.Net.Index.DocsFlags)">Docs(Random, TermsEnum, IBits, DocsEnum, DocsFlags)</h4>
<div class="markdown level1 summary"><p>Returns a <span class="xref">Lucene.Net.Index.DocsEnum</span> from a positioned <span class="xref">Lucene.Net.Index.TermsEnum</span>, but
randomly sometimes uses a <span class="xref">Lucene.Net.Index.MultiDocsEnum</span>, <span class="xref">Lucene.Net.Index.DocsAndPositionsEnum</span>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static DocsEnum Docs(Random random, TermsEnum termsEnum, IBits liveDocs, DocsEnum reuse, DocsFlags flags)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">Lucene.Net.Index.TermsEnum</span></td>
<td><span class="parametername">termsEnum</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">Lucene.Net.Util.IBits</span></td>
<td><span class="parametername">liveDocs</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">Lucene.Net.Index.DocsEnum</span></td>
<td><span class="parametername">reuse</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">Lucene.Net.Index.DocsFlags</span></td>
<td><span class="parametername">flags</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Index.DocsEnum</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_FieldSupportsHugeBinaryDocValues_System_String_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.FieldSupportsHugeBinaryDocValues(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L972">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_FieldSupportsHugeBinaryDocValues_" data-uid="Lucene.Net.Util.TestUtil.FieldSupportsHugeBinaryDocValues*"></a>
<h4 id="Lucene_Net_Util_TestUtil_FieldSupportsHugeBinaryDocValues_System_String_" data-uid="Lucene.Net.Util.TestUtil.FieldSupportsHugeBinaryDocValues(System.String)">FieldSupportsHugeBinaryDocValues(String)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool FieldSupportsHugeBinaryDocValues(string field)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">field</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_GetDocValuesFormat_Lucene_Net_Codecs_Codec_System_String_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.GetDocValuesFormat(Lucene.Net.Codecs.Codec%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L958">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_GetDocValuesFormat_" data-uid="Lucene.Net.Util.TestUtil.GetDocValuesFormat*"></a>
<h4 id="Lucene_Net_Util_TestUtil_GetDocValuesFormat_Lucene_Net_Codecs_Codec_System_String_" data-uid="Lucene.Net.Util.TestUtil.GetDocValuesFormat(Lucene.Net.Codecs.Codec,System.String)">GetDocValuesFormat(Codec, String)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetDocValuesFormat(Codec codec, string field)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Codecs.Codec</span></td>
<td><span class="parametername">codec</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">field</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_GetDocValuesFormat_System_String_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.GetDocValuesFormat(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L953">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_GetDocValuesFormat_" data-uid="Lucene.Net.Util.TestUtil.GetDocValuesFormat*"></a>
<h4 id="Lucene_Net_Util_TestUtil_GetDocValuesFormat_System_String_" data-uid="Lucene.Net.Util.TestUtil.GetDocValuesFormat(System.String)">GetDocValuesFormat(String)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetDocValuesFormat(string field)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">field</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_GetPostingsFormat_Lucene_Net_Codecs_Codec_System_String_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.GetPostingsFormat(Lucene.Net.Codecs.Codec%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L940">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_GetPostingsFormat_" data-uid="Lucene.Net.Util.TestUtil.GetPostingsFormat*"></a>
<h4 id="Lucene_Net_Util_TestUtil_GetPostingsFormat_Lucene_Net_Codecs_Codec_System_String_" data-uid="Lucene.Net.Util.TestUtil.GetPostingsFormat(Lucene.Net.Codecs.Codec,System.String)">GetPostingsFormat(Codec, String)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetPostingsFormat(Codec codec, string field)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Codecs.Codec</span></td>
<td><span class="parametername">codec</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">field</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_GetPostingsFormat_System_String_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.GetPostingsFormat(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L935">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_GetPostingsFormat_" data-uid="Lucene.Net.Util.TestUtil.GetPostingsFormat*"></a>
<h4 id="Lucene_Net_Util_TestUtil_GetPostingsFormat_System_String_" data-uid="Lucene.Net.Util.TestUtil.GetPostingsFormat(System.String)">GetPostingsFormat(String)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetPostingsFormat(string field)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">field</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_NextInt32_System_Random_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.NextInt32(System.Random%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L264">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_NextInt32_" data-uid="Lucene.Net.Util.TestUtil.NextInt32*"></a>
<h4 id="Lucene_Net_Util_TestUtil_NextInt32_System_Random_System_Int32_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.NextInt32(System.Random,System.Int32,System.Int32)">NextInt32(Random, Int32, Int32)</h4>
<div class="markdown level1 summary"><p><code data-dev-comment-type="paramref" class="paramref">start</code> and <code data-dev-comment-type="paramref" class="paramref">end</code> are BOTH inclusive </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static int NextInt32(Random r, int start, int end)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">start</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">end</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_NextInt64_System_Random_System_Int64_System_Int64_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.NextInt64(System.Random%2CSystem.Int64%2CSystem.Int64)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L271">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_NextInt64_" data-uid="Lucene.Net.Util.TestUtil.NextInt64*"></a>
<h4 id="Lucene_Net_Util_TestUtil_NextInt64_System_Random_System_Int64_System_Int64_" data-uid="Lucene.Net.Util.TestUtil.NextInt64(System.Random,System.Int64,System.Int64)">NextInt64(Random, Int64, Int64)</h4>
<div class="markdown level1 summary"><p><code data-dev-comment-type="paramref" class="paramref">start</code> and <code data-dev-comment-type="paramref" class="paramref">end</code> are BOTH inclusive </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long NextInt64(Random r, long start, long end)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">start</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">end</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomAnalysisString_System_Random_System_Int32_System_Boolean_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomAnalysisString(System.Random%2CSystem.Int32%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1341">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomAnalysisString_" data-uid="Lucene.Net.Util.TestUtil.RandomAnalysisString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomAnalysisString_System_Random_System_Int32_System_Boolean_" data-uid="Lucene.Net.Util.TestUtil.RandomAnalysisString(System.Random,System.Int32,System.Boolean)">RandomAnalysisString(Random, Int32, Boolean)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomAnalysisString(Random random, int maxLength, bool simple)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">maxLength</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">simple</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomFilterStrategy_System_Random_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomFilterStrategy(System.Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1284">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomFilterStrategy_" data-uid="Lucene.Net.Util.TestUtil.RandomFilterStrategy*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomFilterStrategy_System_Random_" data-uid="Lucene.Net.Util.TestUtil.RandomFilterStrategy(System.Random)">RandomFilterStrategy(Random)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static FilteredQuery.FilterStrategy RandomFilterStrategy(Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Search.FilteredQuery.FilterStrategy</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomFixedByteLengthUnicodeString_System_Random_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomFixedByteLengthUnicodeString(System.Random%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L812">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomFixedByteLengthUnicodeString_" data-uid="Lucene.Net.Util.TestUtil.RandomFixedByteLengthUnicodeString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomFixedByteLengthUnicodeString_System_Random_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.RandomFixedByteLengthUnicodeString(System.Random,System.Int32)">RandomFixedByteLengthUnicodeString(Random, Int32)</h4>
<div class="markdown level1 summary"><p>Returns random string, with a given UTF-8 byte <code data-dev-comment-type="paramref" class="paramref">length</code>. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomFixedByteLengthUnicodeString(Random r, int length)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">length</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomFixedLengthUnicodeString_System_Random_System_Char___System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomFixedLengthUnicodeString(System.Random%2CSystem.Char%5B%5D%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L395">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomFixedLengthUnicodeString_" data-uid="Lucene.Net.Util.TestUtil.RandomFixedLengthUnicodeString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomFixedLengthUnicodeString_System_Random_System_Char___System_Int32_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.RandomFixedLengthUnicodeString(System.Random,System.Char[],System.Int32,System.Int32)">RandomFixedLengthUnicodeString(Random, Char[], Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Fills provided <span class="xref">char[]</span> with valid random unicode code
unit sequence.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void RandomFixedLengthUnicodeString(Random random, char[] chars, int offset, int length)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Char</span>[]</td>
<td><span class="parametername">chars</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">offset</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">length</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomHtmlishString_System_Random_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomHtmlishString(System.Random%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L511">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomHtmlishString_" data-uid="Lucene.Net.Util.TestUtil.RandomHtmlishString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomHtmlishString_System_Random_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.RandomHtmlishString(System.Random,System.Int32)">RandomHtmlishString(Random, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a random HTML-like string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomHtmlishString(Random random, int numElements)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">numElements</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomlyRecaseString_System_Random_System_String_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomlyRecaseString(System.Random%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L708">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomlyRecaseString_" data-uid="Lucene.Net.Util.TestUtil.RandomlyRecaseString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomlyRecaseString_System_Random_System_String_" data-uid="Lucene.Net.Util.TestUtil.RandomlyRecaseString(System.Random,System.String)">RandomlyRecaseString(Random, String)</h4>
<div class="markdown level1 summary"><p>Randomly upcases, downcases, or leaves intact each code point in the given string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomlyRecaseString(Random random, string str)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">str</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomRealisticUnicodeString_System_Random_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomRealisticUnicodeString(System.Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L784">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomRealisticUnicodeString_" data-uid="Lucene.Net.Util.TestUtil.RandomRealisticUnicodeString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomRealisticUnicodeString_System_Random_" data-uid="Lucene.Net.Util.TestUtil.RandomRealisticUnicodeString(System.Random)">RandomRealisticUnicodeString(Random)</h4>
<div class="markdown level1 summary"><p>Returns random string of length between 0-20 codepoints, all codepoints within the same unicode block. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomRealisticUnicodeString(Random r)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomRealisticUnicodeString_System_Random_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomRealisticUnicodeString(System.Random%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L791">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomRealisticUnicodeString_" data-uid="Lucene.Net.Util.TestUtil.RandomRealisticUnicodeString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomRealisticUnicodeString_System_Random_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.RandomRealisticUnicodeString(System.Random,System.Int32)">RandomRealisticUnicodeString(Random, Int32)</h4>
<div class="markdown level1 summary"><p>Returns random string of length up to maxLength codepoints, all codepoints within the same unicode block. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomRealisticUnicodeString(Random r, int maxLength)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">maxLength</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomRealisticUnicodeString_System_Random_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomRealisticUnicodeString(System.Random%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L798">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomRealisticUnicodeString_" data-uid="Lucene.Net.Util.TestUtil.RandomRealisticUnicodeString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomRealisticUnicodeString_System_Random_System_Int32_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.RandomRealisticUnicodeString(System.Random,System.Int32,System.Int32)">RandomRealisticUnicodeString(Random, Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Returns random string of length between min and max codepoints, all codepoints within the same unicode block. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomRealisticUnicodeString(Random r, int minLength, int maxLength)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">minLength</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">maxLength</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomRegex_System_Random_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomRegex(System.Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1258">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomRegex_" data-uid="Lucene.Net.Util.TestUtil.RandomRegex*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomRegex_System_Random_" data-uid="Lucene.Net.Util.TestUtil.RandomRegex(System.Random)">RandomRegex(Random)</h4>
<div class="markdown level1 summary"><p>Returns a valid (compiling) <span class="xref">System.Text.RegularExpressions.Regex</span> instance with random stuff inside. Be careful
when applying random patterns to longer strings as certain types of patterns
may explode into exponential times in backtracking implementations (such as Java&apos;s).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Regex RandomRegex(Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Text.RegularExpressions.Regex</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomRegexpishString_System_Random_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomRegexpishString(System.Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L433">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomRegexpishString_" data-uid="Lucene.Net.Util.TestUtil.RandomRegexpishString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomRegexpishString_System_Random_" data-uid="Lucene.Net.Util.TestUtil.RandomRegexpishString(System.Random)">RandomRegexpishString(Random)</h4>
<div class="markdown level1 summary"><p>Returns a <span class="xref">System.String</span> thats &quot;regexpish&quot; (contains lots of operators typically found in regular expressions)
If you call this enough times, you might get a valid regex!</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomRegexpishString(Random r)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomRegexpishString_System_Random_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomRegexpishString(System.Random%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L467">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomRegexpishString_" data-uid="Lucene.Net.Util.TestUtil.RandomRegexpishString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomRegexpishString_System_Random_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.RandomRegexpishString(System.Random,System.Int32)">RandomRegexpishString(Random, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a <span class="xref">System.String</span> thats &quot;regexpish&quot; (contains lots of operators typically found in regular expressions)
If you call this enough times, you might get a valid regex!</p>
<p><p>Note: to avoid practically endless backtracking patterns we replace asterisk and plus
operators with bounded repetitions. See LUCENE-4111 for more info.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomRegexpishString(Random r, int maxLength)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">maxLength</span></td>
<td><p>A hint about maximum length of the regexpish string. It may be exceeded by a few characters. </p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomSimpleString_System_Random_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomSimpleString(System.Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L363">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomSimpleString_" data-uid="Lucene.Net.Util.TestUtil.RandomSimpleString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomSimpleString_System_Random_" data-uid="Lucene.Net.Util.TestUtil.RandomSimpleString(System.Random)">RandomSimpleString(Random)</h4>
<div class="markdown level1 summary"><p>Returns a random string consisting only of lowercase characters &apos;a&apos; through &apos;z&apos;,
between 0 and 20 characters in length.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomSimpleString(Random r)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomSimpleString_System_Random_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomSimpleString(System.Random%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L316">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomSimpleString_" data-uid="Lucene.Net.Util.TestUtil.RandomSimpleString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomSimpleString_System_Random_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.RandomSimpleString(System.Random,System.Int32)">RandomSimpleString(Random, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a random string consisting only of lowercase characters &apos;a&apos; through &apos;z&apos;.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomSimpleString(Random r, int maxLength)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">maxLength</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomSimpleString_System_Random_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomSimpleString(System.Random%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L324">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomSimpleString_" data-uid="Lucene.Net.Util.TestUtil.RandomSimpleString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomSimpleString_System_Random_System_Int32_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.RandomSimpleString(System.Random,System.Int32,System.Int32)">RandomSimpleString(Random, Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a random string consisting only of lowercase characters &apos;a&apos; through &apos;z&apos;.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomSimpleString(Random r, int minLength, int maxLength)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">minLength</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">maxLength</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomSimpleStringRange_System_Random_System_Char_System_Char_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomSimpleStringRange(System.Random%2CSystem.Char%2CSystem.Char%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L343">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomSimpleStringRange_" data-uid="Lucene.Net.Util.TestUtil.RandomSimpleStringRange*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomSimpleStringRange_System_Random_System_Char_System_Char_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.RandomSimpleStringRange(System.Random,System.Char,System.Char,System.Int32)">RandomSimpleStringRange(Random, Char, Char, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a random string consisting only of characters between <code data-dev-comment-type="paramref" class="paramref">minChar</code> and <code data-dev-comment-type="paramref" class="paramref">maxChar</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomSimpleStringRange(Random r, char minChar, char maxChar, int maxLength)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Char</span></td>
<td><span class="parametername">minChar</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Char</span></td>
<td><span class="parametername">maxChar</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">maxLength</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomSubString_System_Random_System_Int32_System_Boolean_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomSubString(System.Random%2CSystem.Int32%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1373">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomSubString_" data-uid="Lucene.Net.Util.TestUtil.RandomSubString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomSubString_System_Random_System_Int32_System_Boolean_" data-uid="Lucene.Net.Util.TestUtil.RandomSubString(System.Random,System.Int32,System.Boolean)">RandomSubString(Random, Int32, Boolean)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomSubString(Random random, int wordLength, bool simple)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">wordLength</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">simple</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomUnicodeString_System_Random_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomUnicodeString(System.Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L370">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomUnicodeString_" data-uid="Lucene.Net.Util.TestUtil.RandomUnicodeString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomUnicodeString_System_Random_" data-uid="Lucene.Net.Util.TestUtil.RandomUnicodeString(System.Random)">RandomUnicodeString(Random)</h4>
<div class="markdown level1 summary"><p>Returns random string, including full unicode range. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomUnicodeString(Random r)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomUnicodeString_System_Random_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomUnicodeString(System.Random%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L378">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomUnicodeString_" data-uid="Lucene.Net.Util.TestUtil.RandomUnicodeString*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomUnicodeString_System_Random_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.RandomUnicodeString(System.Random,System.Int32)">RandomUnicodeString(Random, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a random string up to a certain length.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomUnicodeString(Random r, int maxLength)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">maxLength</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_RandomWhitespace_System_Random_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.RandomWhitespace(System.Random%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1326">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_RandomWhitespace_" data-uid="Lucene.Net.Util.TestUtil.RandomWhitespace*"></a>
<h4 id="Lucene_Net_Util_TestUtil_RandomWhitespace_System_Random_System_Int32_System_Int32_" data-uid="Lucene.Net.Util.TestUtil.RandomWhitespace(System.Random,System.Int32,System.Int32)">RandomWhitespace(Random, Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Returns a random string in the specified length range consisting
entirely of whitespace characters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string RandomWhitespace(Random r, int minLength, int maxLength)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">r</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">minLength</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">maxLength</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 id="Lucene_Net_Util_TestUtil_RandomWhitespace_System_Random_System_Int32_System_Int32__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Lucene.Net.Util.TestUtil.html#Lucene_Net_Util_TestUtil_WHITESPACE_CHARACTERS">WHITESPACE_CHARACTERS</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_ReduceOpenFiles_Lucene_Net_Index_IndexWriter_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.ReduceOpenFiles(Lucene.Net.Index.IndexWriter)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1001">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_ReduceOpenFiles_" data-uid="Lucene.Net.Util.TestUtil.ReduceOpenFiles*"></a>
<h4 id="Lucene_Net_Util_TestUtil_ReduceOpenFiles_Lucene_Net_Index_IndexWriter_" data-uid="Lucene.Net.Util.TestUtil.ReduceOpenFiles(Lucene.Net.Index.IndexWriter)">ReduceOpenFiles(IndexWriter)</h4>
<div class="markdown level1 summary"><p>Just tries to configure things to keep the open file
count lowish.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void ReduceOpenFiles(IndexWriter w)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Index.IndexWriter</span></td>
<td><span class="parametername">w</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_Rm_System_IO_DirectoryInfo___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.Rm(System.IO.DirectoryInfo%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L63">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_Rm_" data-uid="Lucene.Net.Util.TestUtil.Rm*"></a>
<h4 id="Lucene_Net_Util_TestUtil_Rm_System_IO_DirectoryInfo___" data-uid="Lucene.Net.Util.TestUtil.Rm(System.IO.DirectoryInfo[])">Rm(DirectoryInfo[])</h4>
<div class="markdown level1 summary"><p>Deletes one or more files or directories (and everything underneath it).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Rm(params DirectoryInfo[] locations)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.IO.DirectoryInfo</span>[]</td>
<td><span class="parametername">locations</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.IO.IOException</span></td>
<td><p>If any of the given files (or their subhierarchy files in case
of directories) cannot be removed.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_StringToCharSequence_System_String_System_Random_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.StringToCharSequence(System.String%2CSystem.Random)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L1212">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_StringToCharSequence_" data-uid="Lucene.Net.Util.TestUtil.StringToCharSequence*"></a>
<h4 id="Lucene_Net_Util_TestUtil_StringToCharSequence_System_String_System_Random_" data-uid="Lucene.Net.Util.TestUtil.StringToCharSequence(System.String,System.Random)">StringToCharSequence(String, Random)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static ICharSequence StringToCharSequence(string string, Random random)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">string</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Random</span></td>
<td><span class="parametername">random</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">J2N.Text.ICharSequence</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_SyncConcurrentMerges_Lucene_Net_Index_IMergeScheduler_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.SyncConcurrentMerges(Lucene.Net.Index.IMergeScheduler)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L179">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_SyncConcurrentMerges_" data-uid="Lucene.Net.Util.TestUtil.SyncConcurrentMerges*"></a>
<h4 id="Lucene_Net_Util_TestUtil_SyncConcurrentMerges_Lucene_Net_Index_IMergeScheduler_" data-uid="Lucene.Net.Util.TestUtil.SyncConcurrentMerges(Lucene.Net.Index.IMergeScheduler)">SyncConcurrentMerges(IMergeScheduler)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void SyncConcurrentMerges(IMergeScheduler ms)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Index.IMergeScheduler</span></td>
<td><span class="parametername">ms</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_SyncConcurrentMerges_Lucene_Net_Index_IndexWriter_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.SyncConcurrentMerges(Lucene.Net.Index.IndexWriter)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L174">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_SyncConcurrentMerges_" data-uid="Lucene.Net.Util.TestUtil.SyncConcurrentMerges*"></a>
<h4 id="Lucene_Net_Util_TestUtil_SyncConcurrentMerges_Lucene_Net_Index_IndexWriter_" data-uid="Lucene.Net.Util.TestUtil.SyncConcurrentMerges(Lucene.Net.Index.IndexWriter)">SyncConcurrentMerges(IndexWriter)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void SyncConcurrentMerges(IndexWriter writer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Index.IndexWriter</span></td>
<td><span class="parametername">writer</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil_Unzip_System_IO_Stream_System_IO_DirectoryInfo_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil.Unzip(System.IO.Stream%2CSystem.IO.DirectoryInfo)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L130">View Source</a>
</span>
<a id="Lucene_Net_Util_TestUtil_Unzip_" data-uid="Lucene.Net.Util.TestUtil.Unzip*"></a>
<h4 id="Lucene_Net_Util_TestUtil_Unzip_System_IO_Stream_System_IO_DirectoryInfo_" data-uid="Lucene.Net.Util.TestUtil.Unzip(System.IO.Stream,System.IO.DirectoryInfo)">Unzip(Stream, DirectoryInfo)</h4>
<div class="markdown level1 summary"><p>Convenience method unzipping <code data-dev-comment-type="paramref" class="paramref">zipFileStream</code> into <code data-dev-comment-type="paramref" class="paramref">destDir</code>, cleaning up
<code data-dev-comment-type="paramref" class="paramref">destDir</code> first. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Unzip(Stream zipFileStream, DirectoryInfo destDir)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.IO.Stream</span></td>
<td><span class="parametername">zipFileStream</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.IO.DirectoryInfo</span></td>
<td><span class="parametername">destDir</span></td>
<td></td>
</tr>
</tbody>
</table>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_TestUtil.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.TestUtil%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
</li>
<li>
<a href="https://github.com/apache/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.TestFramework/Util/TestUtil.cs/#L56" class="contribution-link">View Source</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
Copyright © 2020 Licensed to the Apache Software Foundation (ASF)
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.js"></script>
</body>
</html>