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 Next
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. |
max | Do not score documents past this. |
System. |
firstDocID | The first document ID (ensures Next |
Returns
Type | Description |
---|---|
System. |
true if more matching documents may remain. |
Score()
Returns the score of the current document matching the query.
Initially invalid, until Next
Declaration
public abstract float Score()
Returns
Type | Description |
---|---|
System. |