Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class TermFreqValueSource

    Function that returns Lucene.Net.Index.DocsEnum.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
    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(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 TermFreqValueSource : DocFreqValueSource

    Constructors

    TermFreqValueSource(string, string, string, BytesRef)

    Function that returns Lucene.Net.Index.DocsEnum.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.
    Declaration
    public TermFreqValueSource(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 Lucene.Net.Index.DocsEnum.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.
    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.