20 namespace Lucene.Net.Search.Payloads
34 public override float CurrentScore(
int docId, System.String field,
int start,
int end,
int numPayloadsSeen,
float currentScore,
float currentPayloadScore)
36 return currentPayloadScore + currentScore;
39 public override float DocScore(
int docId, System.String field,
int numPayloadsSeen,
float payloadScore)
41 return numPayloadsSeen > 0?(payloadScore / numPayloadsSeen):1;
44 public override int GetHashCode()
48 result = prime * result + this.GetType().
GetHashCode();
52 public override bool Equals(System.Object obj)
58 if (GetType() != obj.GetType())