public class AveragePayloadFunction extends PayloadFunction
| Constructor and Description |
|---|
AveragePayloadFunction() |
| Modifier and Type | Method and Description |
|---|---|
float |
currentScore(int docId,
String field,
int start,
int end,
int numPayloadsSeen,
float currentScore,
float currentPayloadScore)
Calculate the score up to this point for this doc and field
|
float |
docScore(int docId,
String field,
int numPayloadsSeen,
float payloadScore)
Calculate the final score for all the payloads seen so far for this doc/field
|
boolean |
equals(Object obj) |
int |
hashCode() |
explainpublic float currentScore(int docId,
String field,
int start,
int end,
int numPayloadsSeen,
float currentScore,
float currentPayloadScore)
PayloadFunctioncurrentScore in class PayloadFunctiondocId - The current docfield - The fieldstart - The start position of the matching Spanend - The end position of the matching SpannumPayloadsSeen - The number of payloads seen so farcurrentScore - The current score so farcurrentPayloadScore - The score for the current payloadSpanspublic float docScore(int docId,
String field,
int numPayloadsSeen,
float payloadScore)
PayloadFunctiondocScore in class PayloadFunctiondocId - The current docfield - The current fieldnumPayloadsSeen - The total number of payloads seen on this documentpayloadScore - The raw score for those payloadspublic int hashCode()
hashCode in class PayloadFunctionpublic boolean equals(Object obj)
equals in class PayloadFunctionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.