Show / Hide Table of Contents

    Class TermStatistics

    Contains statistics for a specific term

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    TermStatistics
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public class TermStatistics : object

    Constructors

    | Improve this Doc View Source

    TermStatistics(BytesRef, Int64, Int64)

    Sole constructor.

    Declaration
    public TermStatistics(BytesRef term, long docFreq, long totalTermFreq)
    Parameters
    Type Name Description
    BytesRef term
    System.Int64 docFreq
    System.Int64 totalTermFreq

    Properties

    | Improve this Doc View Source

    DocFreq

    Returns the number of documents this term occurs in

    Declaration
    public long DocFreq { get; }
    Property Value
    Type Description
    System.Int64
    See Also
    DocFreq
    | Improve this Doc View Source

    Term

    Returns the term text

    Declaration
    public BytesRef Term { get; }
    Property Value
    Type Description
    BytesRef
    | Improve this Doc View Source

    TotalTermFreq

    Returns the total number of occurrences of this term

    Declaration
    public long TotalTermFreq { get; }
    Property Value
    Type Description
    System.Int64
    See Also
    TotalTermFreq
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)