Compares two ScoreDoc objects and returns a result indicating their sort order.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
int Compare(
	ScoreDoc i,
	ScoreDoc j
)
Visual Basic
Function Compare ( _
	i As ScoreDoc, _
	j As ScoreDoc _
) As Integer
Visual C++
int Compare(
	ScoreDoc^ i, 
	ScoreDoc^ j
)

Parameters

i
Type: Lucene.Net.Search..::..ScoreDoc
First ScoreDoc
j
Type: Lucene.Net.Search..::..ScoreDoc
Second ScoreDoc

Return Value

a negative integer if
CopyC#
i
should come before
CopyC#
j

a positive integer if
CopyC#
i
should come after
CopyC#
j

CopyC#
0
if they are equal

See Also