Checks the internal cache for an appropriate entry, and if none is found reads the terms out of
CopyC#
field
and calls the given SortComparator to get the sort values. A hit in the cache will happen if
CopyC#
reader
,
CopyC#
field
, and
CopyC#
comparator
are the same (using
CopyC#
equals()
) as a previous call to this method.

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

Syntax

C#
[ObsoleteAttribute("Please implement FieldComparatorSource directly, instead.")]
IComparable[] GetCustom(
	IndexReader reader,
	string field,
	SortComparator comparator
)
Visual Basic
<ObsoleteAttribute("Please implement FieldComparatorSource directly, instead.")> _
Function GetCustom ( _
	reader As IndexReader, _
	field As String, _
	comparator As SortComparator _
) As IComparable()
Visual C++
[ObsoleteAttribute(L"Please implement FieldComparatorSource directly, instead.")]
array<IComparable^>^ GetCustom(
	IndexReader^ reader, 
	String^ field, 
	SortComparator^ comparator
)

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader
Used to get field values.
field
Type: System..::..String
Which field contains the values.
comparator
Type: Lucene.Net.Search..::..SortComparator
Used to convert terms into something to sort by.

Return Value

Array of sort objects, one for each document.

See Also