20 namespace Lucene.Net.Search.Payloads
33 public override float CurrentScore(
int docId, System.String field,
int start,
int end,
int numPayloadsSeen,
float currentScore,
float currentPayloadScore)
35 if (numPayloadsSeen == 0)
37 return currentPayloadScore;
41 return System.Math.Max(currentPayloadScore, currentScore);
45 public override float DocScore(
int docId, System.String field,
int numPayloadsSeen,
float payloadScore)
47 return numPayloadsSeen > 0?payloadScore:1;
50 public override int GetHashCode()
54 result = prime * result + this.GetType().
GetHashCode();
58 public override bool Equals(System.Object obj)
64 if (GetType() != obj.GetType())