Class FieldComparer.TermOrdValComparer
Sorts by field's natural Term sort order, using ordinals. This is functionally equivalent to FieldComparer.TermValComparer, but it first resolves the string to their relative ordinal positions (using the index returned by GetTermsIndex(AtomicReader, String, Single)), and does most comparisons using the ordinals. For medium to large results, this comparer will be much faster than FieldComparer.TermValComparer. For very small result sets it may be slower.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public class TermOrdValComparer : FieldComparer<BytesRef>
Constructors
Name | Description |
---|---|
TermOrdValComparer(Int32, String) | Creates this, sorting missing values first. |
TermOrdValComparer(Int32, String, Boolean) | Creates this, with control over how missing values
are sorted. Pass true for |
Properties
Name | Description |
---|---|
Item[Int32] |
Methods
Name | Description |
---|---|
Compare(Int32, Int32) | |
CompareBottom(Int32) | |
CompareTop(Int32) | |
CompareValues(BytesRef, BytesRef) | |
Copy(Int32, Int32) | |
GetSortedDocValues(AtomicReaderContext, String) | Retrieves the SortedDocValues for the field in this segment |
SetBottom(Int32) | |
SetNextReader(AtomicReaderContext) | |
SetTopValue(Object) |