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