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
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Misc
Assembly: Lucene.Net.Misc.dll
Syntax
public class HighFreqTerms
Fields
| Improve this Doc View SourceDEFAULT_NUMTERMS
Declaration
public const int DEFAULT_NUMTERMS = 100
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 |
---|---|---|
Lucene.Net.Index.IndexReader | reader | |
System.Int32 | numTerms | |
System.String | field | |
System.Collections.Generic.IComparer<TermStats> | comparer |
Returns
Type | Description |
---|---|
TermStats[] |
Main(String[])
Declaration
public static void Main(string[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | args |