Method Score
Score(Collector)
Scores and collects all matching documents.
Declaration
public virtual void Score(Collector collector)
Parameters
Type | Name | Description |
---|---|---|
Collector | collector | The collector to which all matching documents are passed. |
Score(Collector, Int32, Int32)
Expert: Collects matching documents in a range. Hook for optimization.
Note, firstDocID
is added to ensure that NextDoc()
was called before this method.
Declaration
public virtual bool Score(Collector collector, int max, int firstDocID)
Parameters
Type | Name | Description |
---|---|---|
Collector | collector | The collector to which all matching documents are passed. |
System.Int32 | max | Do not score documents past this. |
System.Int32 | firstDocID | The first document ID (ensures NextDoc() is called before this method. |
Returns
Type | Description |
---|---|
System.Boolean | true if more matching documents may remain. |
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).
Declaration
public abstract float Score()
Returns
Type | Description |
---|---|
System.Single |