protected newIndexWriterConfig ( |
||
random | ||
Результат |
protected virtual IndexWriterConfig newIndexWriterConfig(Random random)
{
IndexWriterConfig indexWriterConfig = NewIndexWriterConfig(random, TEST_VERSION_CURRENT, new MockAnalyzer(random));
//TODO can we randomly choose a doc-values supported format?
if (NeedsDocValues())
indexWriterConfig.SetCodec(TestUtil.AlwaysDocValuesFormat(new Lucene45DocValuesFormat())); ;
return indexWriterConfig;
}