Method GetWeight
GetWeight(Document, Int32)
Returns the value of the Weight property for the current document.
Retrieves the value for the Weight property if its stored (using doc
)
or if its indexed as docId
) for the document.
If no value is found, then the weight is 0.
Declaration
protected virtual long GetWeight(Document doc, int docId)
Parameters
Type | Name | Description |
---|---|---|
Document | doc | |
System.Int32 | docId |
Returns
Type | Description |
---|---|
System.Int64 |