20 namespace Lucene.Net.Search.Payloads
31 public override float CurrentScore(
int docId, System.String field,
int start,
int end,
int numPayloadsSeen,
float currentScore,
float currentPayloadScore)
33 if (numPayloadsSeen == 0)
35 return currentPayloadScore;
39 return System.Math.Min(currentPayloadScore, currentScore);
43 public override float DocScore(
int docId, System.String field,
int numPayloadsSeen,
float payloadScore)
45 return numPayloadsSeen > 0?payloadScore:1;
48 public override int GetHashCode()
52 result = prime * result + this.GetType().
GetHashCode();
56 public override bool Equals(System.Object obj)
62 if (GetType() != obj.GetType())