Method CurrentScore
CurrentScore(Int32, String, Int32, Int32, Int32, Single, Single)
Calculate the score up to this point for this doc and field
Declaration
public abstract float CurrentScore(int docId, string field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | docId | The current doc |
System.String | field | The field |
System.Int32 | start | The start position of the matching Span |
System.Int32 | end | The end position of the matching Span |
System.Int32 | numPayloadsSeen | The number of payloads seen so far |
System.Single | currentScore | The current score so far |
System.Single | currentPayloadScore | The score for the current payload |
Returns
Type | Description |
---|---|
System.Single | The new current Score |