Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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 static class HighFreqTerms

    Fields

    | Improve this Doc View Source

    DEFAULT_NUMTERMS

    Declaration
    public const int DEFAULT_NUMTERMS = 100
    Field Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    GetHighFreqTerms(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[]
    | Improve this Doc View Source

    Main(String[])

    Declaration
    public static void Main(string[] args)
    Parameters
    Type Name Description
    System.String[] args
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.