Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | List of all members
Lucene.Net.Search.Payloads.PayloadFunction Class Referenceabstract

An abstract class that defines a way for Payload*Query instances to transform the cumulative effects of payload scores for a document. More...

Inherited by Lucene.Net.Search.Payloads.AveragePayloadFunction, Lucene.Net.Search.Payloads.MaxPayloadFunction, and Lucene.Net.Search.Payloads.MinPayloadFunction.

Public Member Functions

abstract float CurrentScore (int docId, System.String field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore)
 Calculate the score up to this point for this doc and field
 
abstract float DocScore (int docId, System.String field, int numPayloadsSeen, float payloadScore)
 Calculate the final score for all the payloads seen so far for this doc/field
 
abstract override int GetHashCode ()
 
abstract override bool Equals (System.Object o)
 

Detailed Description

An abstract class that defines a way for Payload*Query instances to transform the cumulative effects of payload scores for a document.

See Also
Lucene.Net.Search.Payloads.PayloadTermQuery

for more information

This class and its derivations are experimental and subject to change

Definition at line 36 of file PayloadFunction.cs.

Member Function Documentation

abstract float Lucene.Net.Search.Payloads.PayloadFunction.CurrentScore ( int  docId,
System.String  field,
int  start,
int  end,
int  numPayloadsSeen,
float  currentScore,
float  currentPayloadScore 
)
pure virtual

Calculate the score up to this point for this doc and field

Parameters
docIdThe current doc
fieldThe field
startThe start position of the matching Span
endThe end position of the matching Span
numPayloadsSeenThe number of payloads seen so far
currentScoreThe current score so far
currentPayloadScoreThe score for the current payload
Returns

The new current Score

See Also
Lucene.Net.Search.Spans.Spans

Implemented in Lucene.Net.Search.Payloads.AveragePayloadFunction, Lucene.Net.Search.Payloads.MaxPayloadFunction, and Lucene.Net.Search.Payloads.MinPayloadFunction.

abstract float Lucene.Net.Search.Payloads.PayloadFunction.DocScore ( int  docId,
System.String  field,
int  numPayloadsSeen,
float  payloadScore 
)
pure virtual

Calculate the final score for all the payloads seen so far for this doc/field

Parameters
docIdThe current doc
fieldThe current field
numPayloadsSeenThe total number of payloads seen on this document
payloadScoreThe raw score for those payloads
Returns
The final score for the payloads

Implemented in Lucene.Net.Search.Payloads.MaxPayloadFunction, Lucene.Net.Search.Payloads.MinPayloadFunction, and Lucene.Net.Search.Payloads.AveragePayloadFunction.

abstract override bool Lucene.Net.Search.Payloads.PayloadFunction.Equals ( System.Object  o)
pure virtual
abstract override int Lucene.Net.Search.Payloads.PayloadFunction.GetHashCode ( )
pure virtual

The documentation for this class was generated from the following file: