|
Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
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) |
An abstract class that defines a way for Payload*Query instances to transform the cumulative effects of payload scores for a document.
for more information
This class and its derivations are experimental and subject to change
Definition at line 36 of file PayloadFunction.cs.
|
pure virtual |
Calculate the score up to this point for this doc and field
| docId | The current doc |
| field | The field |
| start | The start position of the matching Span |
| end | The end position of the matching Span |
| numPayloadsSeen | The number of payloads seen so far |
| currentScore | The current score so far |
| currentPayloadScore | The score for the current payload |
The new current Score
Implemented in Lucene.Net.Search.Payloads.AveragePayloadFunction, Lucene.Net.Search.Payloads.MaxPayloadFunction, and Lucene.Net.Search.Payloads.MinPayloadFunction.
|
pure virtual |
Calculate the final score for all the payloads seen so far for this doc/field
| docId | The current doc |
| field | The current field |
| numPayloadsSeen | The total number of payloads seen on this document |
| payloadScore | The raw score for those payloads |
Implemented in Lucene.Net.Search.Payloads.MaxPayloadFunction, Lucene.Net.Search.Payloads.MinPayloadFunction, and Lucene.Net.Search.Payloads.AveragePayloadFunction.
|
pure virtual |
|
pure virtual |
1.8.3