Class ScoreDoc
Holds one hit in TopDocs.
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public class ScoreDoc : object
Constructors
| Improve this Doc View SourceScoreDoc(Int32, Single)
Constructs a ScoreDoc.
Declaration
public ScoreDoc(int doc, float score)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc | |
System.Single | score |
ScoreDoc(Int32, Single, Int32)
Constructs a ScoreDoc.
Declaration
public ScoreDoc(int doc, float score, int shardIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc | |
System.Single | score | |
System.Int32 | shardIndex |
Properties
| Improve this Doc View SourceDoc
A hit document's number.
Declaration
public int Doc { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
See Also
| Improve this Doc View SourceScore
The score of this document for the query.
Declaration
public float Score { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
ShardIndex
Only set by Merge(Sort, Int32, Int32, TopDocs[])
Declaration
public int ShardIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceToString()
A convenience method for debugging.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |