Class ExtractWikipedia
Extract the downloaded Wikipedia dump into separate files for indexing.
Inherited Members
Namespace: Lucene.Net.Benchmarks.Utils
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class ExtractWikipedia
Constructors
ExtractWikipedia(DocMaker, DirectoryInfo)
Extract the downloaded Wikipedia dump into separate files for indexing.
Declaration
public ExtractWikipedia(DocMaker docMaker, DirectoryInfo outputDir)
Parameters
Type | Name | Description |
---|---|---|
DocMaker | docMaker | |
DirectoryInfo | outputDir |
Fields
count
Extract the downloaded Wikipedia dump into separate files for indexing.
Declaration
public static int count
Field Value
Type | Description |
---|---|
int |
m_docMaker
Extract the downloaded Wikipedia dump into separate files for indexing.
Declaration
protected DocMaker m_docMaker
Field Value
Type | Description |
---|---|
DocMaker |
Methods
Create(string, string, string, string)
Extract the downloaded Wikipedia dump into separate files for indexing.
Declaration
public virtual void Create(string id, string title, string time, string body)
Parameters
Type | Name | Description |
---|---|---|
string | id | |
string | title | |
string | time | |
string | body |
Directory(int, DirectoryInfo)
Extract the downloaded Wikipedia dump into separate files for indexing.
Declaration
public virtual DirectoryInfo Directory(int count, DirectoryInfo directory)
Parameters
Type | Name | Description |
---|---|---|
int | count | |
DirectoryInfo | directory |
Returns
Type | Description |
---|---|
DirectoryInfo |
Extract()
Extract the downloaded Wikipedia dump into separate files for indexing.
Declaration
public virtual void Extract()
Main(string[])
LUCENENET specific: In the Java implementation, this Main method was intended to be called from the command line. However, in .NET a method within a DLL can't be directly called from the command line so we provide a .NET tool, lucene-cli, with a command that maps to this method: benchmark extract-wikipedia
Declaration
public static void Main(string[] args)
Parameters
Type | Name | Description |
---|---|---|
string[] | args | The command line arguments |