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 Float.Nan, Float.NEGATIVE_INFINITY and Float.POSITIVE_INFINITY are not valid scores. Certain collectors (eg TopScoreDocCollector ) will not properly collect hits with these scores.
Inherited Members
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public abstract class Scorer : DocIdSetIterator
Constructors
Name | Description |
---|---|
Scorer(Similarity) | Constructs a Scorer. |
Properties
Name | Description |
---|---|
Similarity | Returns the Similarity implementation used by this scorer. |
Methods
Name | Description |
---|---|
Score() | Returns the score of the current document matching the query. Initially invalid, until NextDoc() or Advance(Int32) is called the first time, or when called from within Collect(Int32). |
Score(Collector) | Scores and collects all matching documents. |
Score(Collector, Int32, Int32) | Expert: Collects matching documents in a range. Hook for optimization.
Note, |