Checks the internal cache for an appropriate entry, and if none
is found reads the terms out of and calls the given SortComparator
to get the sort values. A hit in the cache will happen if ,
, and are the same (using )
as a previous call to this method.
Namespace: Lucene.Net.SearchCopyC#
field
CopyC#
reader
CopyC#
field
CopyC#
comparator
CopyC#
equals()
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.