Class Scorer
Expert: Common scoring functionality for different types of queries.
A Scorer iterates over documents matching a query in increasing order of doc Id.
Document scores are computed using a given Similarity implementation.
NOTE: The values NaN, NegativeInfinity and PositiveInfinity are not valid scores. Certain collectors (eg TopScoreDocCollector) will not properly collect hits with these scores.
Inheritance
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public abstract class Scorer : DocsEnum
Constructors
Scorer(Weight)
Constructs a Scorer
Declaration
protected Scorer(Weight weight)
Parameters
Type | Name | Description |
---|---|---|
Weight | weight | The scorers Weight. |
Fields
m_weight
Declaration
protected readonly Weight m_weight
Field Value
Type | Description |
---|---|
Weight |
Properties
Weight
returns parent Weight
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public virtual Weight Weight { get; }
Property Value
Type | Description |
---|---|
Weight |
Methods
GetChildren()
Returns child sub-scorers
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public virtual ICollection<Scorer.ChildScorer> GetChildren()
Returns
Type | Description |
---|---|
ICollection<Scorer.ChildScorer> |
GetScore()
Returns the score of the current document matching the query. Initially invalid, until NextDoc() or Advance(int) is called the first time, or when called from within Collect(int).
Declaration
public abstract float GetScore()
Returns
Type | Description |
---|---|
float |