Class HighFreqTerms
HighFreqTerms class extracts the top n most frequent terms (by document frequency) from an existing Lucene index and reports their document frequency.
If the -t flag is given, both document frequency and total tf (total number of occurrences) are reported, ordered by descending total tf.
Inheritance
System.Object
HighFreqTerms
Namespace: Lucene.Net.Misc
Assembly: Lucene.Net.Misc.dll
Syntax
public class HighFreqTerms : object
Fields
| Improve this Doc View SourceDEFAULT_NUMTERMS
Declaration
public const int DEFAULT_NUMTERMS = null
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceGetHighFreqTerms(IndexReader, Int32, 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
| Type | Name | Description |
|---|---|---|
| IndexReader | reader | |
| System.Int32 | numTerms | |
| System.String | field | |
| IComparer<TermStats> | comparer |
Returns
| Type | Description |
|---|---|
| TermStats[] |
Main(String[])
Declaration
public static void Main(string[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | args |