Show / Hide Table of Contents

    Class IDFValueSource

    Function that returns for every document.

    Note that the configured Similarity for the field must be a subclass of TFIDFSimilarity @lucene.internal

    Inheritance
    System.Object
    ValueSource
    DocFreqValueSource
    IDFValueSource
    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 IDFValueSource : DocFreqValueSource

    Constructors

    | Improve this Doc View Source

    IDFValueSource(String, String, String, BytesRef)

    Declaration
    public IDFValueSource(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)