Class HighFreqTerms
HighFreqTerms class extracts the top n most frequent terms
(by document frequency) from an existing Lucene index and reports their
document frequency.
LUCENENET specific: In the Java implementation, this class' 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 that method:
index list-high-freq-terms
Inheritance
HighFreqTerms
Assembly: Lucene.Net.Misc.dll
Syntax
public static class HighFreqTerms
Fields
DEFAULT_NUMTERMS
HighFreqTerms class extracts the top n most frequent terms
(by document frequency) from an existing Lucene index and reports their
document frequency.
LUCENENET specific: In the Java implementation, this class' 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 that method:
index list-high-freq-terms
Declaration
public const int DEFAULT_NUMTERMS = 100
Field Value
Methods
GetHighFreqTerms(IndexReader, int, string, IComparer<TermStats>)
Returns TermStats[] ordered by the specified comparer
Declaration
public static TermStats[] GetHighFreqTerms(IndexReader reader, int numTerms, string field, IComparer<TermStats> comparer)
Parameters
Returns
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:
index list-high-freq-terms
Declaration
public static void Main(string[] args)
Parameters
Type |
Name |
Description |
string[] |
args |
|
Exceptions