Class FieldComparator.StringOrdValComparator
Sorts by field's natural String sort order, using ordinals. This is functionally equivalent to FieldComparator.StringValComparator , but it first resolves the string to their relative ordinal positions (using the index returned by GetStringIndex(IndexReader, String)), and does most comparisons using the ordinals. For medium to large results, this comparator will be much faster than FieldComparator.StringValComparator. For very small result sets it may be slower.
Inherited Members
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public sealed class StringOrdValComparator : FieldComparator
Constructors
Name | Description |
---|---|
StringOrdValComparator(Int32, String, Int32, Boolean) |
Properties
Name | Description |
---|---|
BottomSlot | |
Field | |
Item[Int32] |
Methods
Name | Description |
---|---|
Compare(Int32, Int32) | |
CompareBottom(Int32) | |
Copy(Int32, Int32) | |
GetValues() | |
SetBottom(Int32) | |
SetNextReader(IndexReader, Int32) |