Sorts by field's natural String sort order, using ordinals. This is functionally equivalent to {@link StringValComparator}, but it first resolves the string to their relative ordinal positions (using the index returned by {@link FieldCache#getStringIndex}), and does most comparisons using the ordinals. For medium to large results, this comparator will be much faster than {@link StringValComparator}. For very small result sets it may be slower.

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

Syntax

C#
public sealed class StringOrdValComparator : FieldComparator
Visual Basic
Public NotInheritable Class StringOrdValComparator _
	Inherits FieldComparator
Visual C++
public ref class StringOrdValComparator sealed : public FieldComparator

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Search..::..FieldComparator
    Lucene.Net.Search..::..FieldComparator..::..StringOrdValComparator

See Also