Show / Hide Table of Contents

    Class TermFreqValueSource

    Function that returns Freq for the supplied term in every document.

    If the term does not exist in the document, returns 0. If frequencies are omitted, returns 1.

    Inheritance
    System.Object
    ValueSource
    DocFreqValueSource
    TermFreqValueSource
    TFValueSource
    Inherited Members
    DocFreqValueSource.m_field
    DocFreqValueSource.m_indexedField
    DocFreqValueSource.m_val
    DocFreqValueSource.m_indexedBytes
    DocFreqValueSource.GetDescription()
    DocFreqValueSource.CreateWeight(IDictionary, IndexSearcher)
    DocFreqValueSource.GetHashCode()
    DocFreqValueSource.Equals(Object)
    ValueSource.ToString()
    ValueSource.NewContext(IndexSearcher)
    ValueSource.GetSortField(Boolean)
    Namespace: Lucene.Net.Queries.Function.ValueSources
    Assembly: Lucene.Net.Queries.dll
    Syntax
    public class TermFreqValueSource : DocFreqValueSource

    Constructors

    | Improve this Doc View Source

    TermFreqValueSource(String, String, String, BytesRef)

    Declaration
    public TermFreqValueSource(string field, string val, string indexedField, BytesRef indexedBytes)
    Parameters
    Type Name Description
    System.String field
    System.String val
    System.String indexedField
    BytesRef indexedBytes

    Properties

    | Improve this Doc View Source

    Name

    Declaration
    public override string Name { get; }
    Property Value
    Type Description
    System.String
    Overrides
    DocFreqValueSource.Name

    Methods

    | Improve this Doc View Source

    GetValues(IDictionary, AtomicReaderContext)

    Declaration
    public override FunctionValues GetValues(IDictionary context, AtomicReaderContext readerContext)
    Parameters
    Type Name Description
    IDictionary context
    AtomicReaderContext readerContext
    Returns
    Type Description
    FunctionValues
    Overrides
    DocFreqValueSource.GetValues(IDictionary, AtomicReaderContext)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)