public class MinPayloadFunction extends PayloadFunction
Constructor and Description |
---|
MinPayloadFunction() |
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() |
explain
public float currentScore(int docId, String field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore)
PayloadFunction
currentScore
in class PayloadFunction
docId
- 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 payloadSpans
public float docScore(int docId, String field, int numPayloadsSeen, float payloadScore)
PayloadFunction
docScore
in class PayloadFunction
docId
- 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 PayloadFunction
public boolean equals(Object obj)
equals
in class PayloadFunction
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.