Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Namespace Lucene.Net.Queries.Function

    Queries that compute score based upon a function

    Classes

    BoostedQuery

    Query that is boosted by a ValueSource

    FunctionQuery

    Returns a score for each document based on a ValueSource, often some function of the value of a field.

    Note: This API is experimental and may change in non backward-compatible ways in the future

    FunctionQuery.AllScorer

    Queries that compute score based upon a function

    FunctionQuery.FunctionWeight

    Queries that compute score based upon a function

    FunctionValues

    Represents field values as different types. Normally created via a ValueSource for a particular field and reader.

    FunctionValues.ValueFiller

    Abstraction of the logic required to fill the value of a specified doc into a reusable Lucene.Net.Util.Mutable.MutableValue. Implementations of FunctionValues are encouraged to define their own implementations of FunctionValues.ValueFiller if their value is not a float.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    ValueSource

    Instantiates FunctionValues for a particular reader.

    Often used when creating a FunctionQuery.

    ValueSourceScorer

    Lucene.Net.Search.Scorer which returns the result of SingleVal(int) as the score for a document.

    When overriding this class, be aware that ValueSourceScorer constructor is calling its private SetCheckDeletesInternal method as opposed to virtual SetCheckDeletes method. This is done to avoid virtual call in constructor. You can call your own private method for CheckDeletes initialization in your constructor if you need to.

    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.