Class CustomScoreProvider
An instance of this subclass should be returned by
Get
Since Lucene 2.9, queries operate on each segment of an Index separately,
so overriding the similar (now deprecated) methods in Customdoc
ID is per-segment
and without knowledge of the IndexReader you cannot access the
document or Field
@lucene.experimental @since 2.9.2
Inheritance
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public class CustomScoreProvider : object
Constructors
Name | Description |
---|---|
Custom |
Creates a new instance of the provider class for the given IndexReader. |
Fields
Name | Description |
---|---|
reader |
Methods
Name | Description |
---|---|
Custom |
Explain the custom score.
Whenever overriding Custom |
Custom |
Explain the custom score.
Whenever overriding Custom |
Custom |
Compute a custom score by the subQuery score and the ValueSourceQuery score. 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 this customScore() method, which is simpler. The default computation herein is a multiplication of the two scores: ModifiedScore = subQueryScore * valSrcScore |
Custom |
|