Returns a {@link Scorer} which scores documents in/out-of order according to
CopyC#
scoreDocsInOrder
.

NOTE: even if

CopyC#
scoreDocsInOrder
is false, it is recommended to check whether the returned
CopyC#
Scorer
indeed scores documents out of order (i.e., call {@link #ScoresDocsOutOfOrder()}), as some
CopyC#
Scorer
implementations will always return documents in-order.
NOTE: null can be returned if no documents will be scored by this query.

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

Syntax

C#
public abstract Scorer Scorer(
	IndexReader reader,
	bool scoreDocsInOrder,
	bool topScorer
)
Visual Basic
Public MustOverride Function Scorer ( _
	reader As IndexReader, _
	scoreDocsInOrder As Boolean, _
	topScorer As Boolean _
) As Scorer
Visual C++
public:
virtual Scorer^ Scorer(
	IndexReader^ reader, 
	bool scoreDocsInOrder, 
	bool topScorer
) abstract

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader
the {@link IndexReader} for which to return the {@link Scorer}.
scoreDocsInOrder
Type: System..::..Boolean
specifies whether in-order scoring of documents is required. Note that if set to false (i.e., out-of-order scoring is required), this method can return whatever scoring mode it supports, as every in-order scorer is also an out-of-order one. However, an out-of-order scorer may not support {@link Scorer#NextDoc()} and/or {@link Scorer#Advance(int)}, therefore it is recommended to request an in-order scorer if use of these methods is required.
topScorer
Type: System..::..Boolean
if true, {@link Scorer#Score(Collector)} will be called; if false, {@link Scorer#NextDoc()} and/or {@link Scorer#Advance(int)} will be called.

Return Value

a {@link Scorer} which scores documents in/out-of order.

See Also