Class AveragePayloadFunction
Calculate the final score as the average score of all payloads seen.
Is thread safe and completely reusable.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search.Payloads
Assembly: Lucene.Net.dll
Syntax
public class AveragePayloadFunction : PayloadFunction
Methods
| Improve this Doc View SourceCurrentScore(Int32, String, Int32, Int32, Int32, Single, Single)
Declaration
public override float CurrentScore(int docId, string field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | docId | |
System.String | field | |
System.Int32 | start | |
System.Int32 | end | |
System.Int32 | numPayloadsSeen | |
System.Single | currentScore | |
System.Single | currentPayloadScore |
Returns
Type | Description |
---|---|
System.Single |
Overrides
| Improve this Doc View SourceDocScore(Int32, String, Int32, Single)
Declaration
public override float DocScore(int docId, string field, int numPayloadsSeen, float payloadScore)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | docId | |
System.String | field | |
System.Int32 | numPayloadsSeen | |
System.Single | payloadScore |
Returns
Type | Description |
---|---|
System.Single |
Overrides
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |