Method NewIndexWriterConfig
NewIndexWriterConfig(LuceneVersion, Analyzer)
create a new index writer config with random defaults
LUCENENET specific
Non-static so that we do not depend on any hidden static dependencies
Declaration
public IndexWriterConfig NewIndexWriterConfig(LuceneVersion v, Analyzer a)
Parameters
Type |
Name |
Description |
LuceneVersion |
v |
|
Analyzer |
a |
|
Returns
NewIndexWriterConfig(Random, LuceneVersion, Analyzer)
LUCENENET specific
Non-static so that we do not depend on any hidden static dependencies
Declaration
public IndexWriterConfig NewIndexWriterConfig(Random r, LuceneVersion v, Analyzer a)
Parameters
Type |
Name |
Description |
Random |
r |
|
LuceneVersion |
v |
|
Analyzer |
a |
|
Returns
NewIndexWriterConfig(Random, LuceneVersion, Analyzer, Similarity, TimeZoneInfo)
create a new index writer config with random defaults using the specified random
LUCENENET specific
This is the only static ctor for IndexWriterConfig because it removes the dependency
on ClassEnvRule by using parameters Similarity and TimeZone.
Declaration
public static IndexWriterConfig NewIndexWriterConfig(Random r, LuceneVersion v, Analyzer a, Similarity similarity, TimeZoneInfo timezone)
Parameters
Type |
Name |
Description |
Random |
r |
|
LuceneVersion |
v |
|
Analyzer |
a |
|
Similarity |
similarity |
|
TimeZoneInfo |
timezone |
|
Returns