The CustomScoreProvider type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CustomScoreProvider |
Creates a new instance of the provider class for the given IndexReader.
|
Methods
Name | Description | |
---|---|---|
CustomExplain(Int32, Explanation, Explanation) |
Explain the custom score.
Whenever overriding {@link #customScore(int, float, float)},
this method should also be overridden to provide the correct explanation
for the part of the custom scoring.
| |
CustomExplain(Int32, Explanation, array<Explanation>[]()[][]) |
Explain the custom score.
Whenever overriding {@link #customScore(int, float, float[])},
this method should also be overridden to provide the correct explanation
for the part of the custom scoring.
| |
CustomScore(Int32, Single, Single) | ||
CustomScore(Int32, Single, array<Single>[]()[][]) |
* Compute a custom score by the subQuery score and a number of
ValueSourceQuery scores.
Subclasses can override this method to modify the custom score.
If your custom scoring is different than the default herein you
should override at least one of the two customScore() methods.
If the number of ValueSourceQueries is always < 2 it is
sufficient to override the other
{@link #customScore(int, float, float) customScore()}
method, which is simpler.
The default computation herein is a multiplication of given scores:
ModifiedScore = valSrcScore * valSrcScores[0] * valSrcScores[1] * ... | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
reader |