java.lang.Object | ||
↳ | org.apache.lucene.search.payloads.PayloadFunction | |
↳ | org.apache.lucene.search.payloads.AveragePayloadFunction |
Calculate the final score as the average score of all payloads seen.
Is thread safe and completely reusable.Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Calculate the score up to this point for this doc and field
| |||||||||||
Calculate the final score for all the payloads seen so far for this doc/field
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.payloads.PayloadFunction
| |||||||||||
From class
java.lang.Object
|
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 |
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 |