Class Overview
Calculates the minimum payload seen
Summary
Public Methods |
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()
|
[Expand]
Inherited Methods |
From class
org.apache.lucene.search.payloads.PayloadFunction
abstract
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
|
abstract
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
|
abstract
boolean
|
equals(Object o)
|
abstract
int
|
hashCode()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
MinPayloadFunction
()
Public Methods
public
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
Parameters
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 |
public
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
Parameters
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 |
Returns
- The final score for the payloads
public
boolean
equals
(Object obj)