Class GetTermInfo
Utility to get document frequency and total number of occurrences (sum of the tf for each doc) of a term.
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-term-infoInherited Members
Namespace: Lucene.Net.Misc
Assembly: Lucene.Net.Misc.dll
Syntax
public static class GetTermInfo
Methods
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-term-info
Declaration
public static void Main(string[] args)
Parameters
Type | Name | Description |
---|---|---|
string[] | args | The command line arguments |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the incorrect number of arguments are provided |
TermInfo(Directory, Term)
Utility to get document frequency and total number of occurrences (sum of the tf for each doc) of a term.
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-term-infoDeclaration
public static void TermInfo(Directory dir, Term term)
Parameters
Type | Name | Description |
---|---|---|
Directory | dir | |
Term | term |