Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class IDFValueSource

    Function that returns Idf(long, long) for every document.

    Note that the configured Similarity for the field must be a subclass of Lucene.Net.Search.Similarities.TFIDFSimilarity
    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Inheritance
    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(bool)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Queries.Function.ValueSources
    Assembly: Lucene.Net.Queries.dll
    Syntax
    public class IDFValueSource : DocFreqValueSource

    Constructors

    IDFValueSource(string, string, string, BytesRef)

    Function that returns Idf(long, long) for every document.

    Note that the configured Similarity for the field must be a subclass of Lucene.Net.Search.Similarities.TFIDFSimilarity
    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Declaration
    public IDFValueSource(string field, string val, string indexedField, BytesRef indexedBytes)
    Parameters
    Type Name Description
    string field
    string val
    string indexedField
    BytesRef indexedBytes

    Properties

    Name

    Function that returns Idf(long, long) for every document.

    Note that the configured Similarity for the field must be a subclass of Lucene.Net.Search.Similarities.TFIDFSimilarity
    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

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

    Methods

    GetValues(IDictionary, AtomicReaderContext)

    Gets the values for this reader and the context that was previously passed to CreateWeight(IDictionary, IndexSearcher)

    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)
    Back to top Copyright © 2024 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.