Show / Hide Table of Contents

    Class AveragePayloadFunction

    Calculate the final score as the average score of all payloads seen.

    Is thread safe and completely reusable.

    Inheritance
    System.Object
    PayloadFunction
    AveragePayloadFunction
    Inherited Members
    PayloadFunction.Explain(Int32, String, Int32, Single)
    Namespace: Lucene.Net.Search.Payloads
    Assembly: Lucene.Net.dll
    Syntax
    public class AveragePayloadFunction : PayloadFunction

    Methods

    | Improve this Doc View Source

    CurrentScore(Int32, String, Int32, Int32, Int32, Single, Single)

    Declaration
    public override float CurrentScore(int docId, string field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore)
    Parameters
    Type Name Description
    System.Int32 docId
    System.String field
    System.Int32 start
    System.Int32 end
    System.Int32 numPayloadsSeen
    System.Single currentScore
    System.Single currentPayloadScore
    Returns
    Type Description
    System.Single
    Overrides
    PayloadFunction.CurrentScore(Int32, String, Int32, Int32, Int32, Single, Single)
    | Improve this Doc View Source

    DocScore(Int32, String, Int32, Single)

    Declaration
    public override float DocScore(int docId, string field, int numPayloadsSeen, float payloadScore)
    Parameters
    Type Name Description
    System.Int32 docId
    System.String field
    System.Int32 numPayloadsSeen
    System.Single payloadScore
    Returns
    Type Description
    System.Single
    Overrides
    PayloadFunction.DocScore(Int32, String, Int32, Single)
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    PayloadFunction.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    PayloadFunction.GetHashCode()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)