Constructor RandomIndexWriter
RandomIndexWriter(Random, Directory, Similarities.Similarity, TimeZoneInfo)
create a RandomIndexWriter with a random config: Uses TEST_VERSION_CURRENT and MockAnalyzer
LUCENENET specific
Similarity and TimeZone parameters allow a RandomIndexWriter to be
created without adding a dependency on
Declaration
public RandomIndexWriter(Random r, Directory dir, Similarities.Similarity similarity, TimeZoneInfo timezone)
Parameters
Type | Name | Description |
---|---|---|
Random | r | |
Directory | dir | |
Similarity | similarity | |
TimeZoneInfo | timezone |
RandomIndexWriter(Random, Directory, Analyzer, Similarities.Similarity, TimeZoneInfo)
create a RandomIndexWriter with a random config: Uses TEST_VERSION_CURRENT
LUCENENET specific
Similarity and TimeZone parameters allow a RandomIndexWriter to be
created without adding a dependency on
Declaration
public RandomIndexWriter(Random r, Directory dir, Analyzer a, Similarities.Similarity similarity, TimeZoneInfo timezone)
Parameters
Type | Name | Description |
---|---|---|
Random | r | |
Directory | dir | |
Analyzer | a | |
Similarity | similarity | |
TimeZoneInfo | timezone |
RandomIndexWriter(Random, Directory, LuceneVersion, Analyzer, Similarities.Similarity, TimeZoneInfo)
Creates a RandomIndexWriter with a random config
LUCENENET specific
Similarity and TimeZone parameters allow a RandomIndexWriter to be
created without adding a dependency on
Declaration
public RandomIndexWriter(Random r, Directory dir, LuceneVersion v, Analyzer a, Similarities.Similarity similarity, TimeZoneInfo timezone)
Parameters
Type | Name | Description |
---|---|---|
Random | r | |
Directory | dir | |
LuceneVersion | v | |
Analyzer | a | |
Similarity | similarity | |
TimeZoneInfo | timezone |
RandomIndexWriter(Random, Directory, IndexWriterConfig)
create a RandomIndexWriter with the provided config
Declaration
public RandomIndexWriter(Random r, Directory dir, IndexWriterConfig c)
Parameters
Type | Name | Description |
---|---|---|
Random | r | |
Directory | dir | |
IndexWriterConfig | c |