Class SortedSetSortField
SortField for SortedSetDocValues.
A SortedSetDocValues contains multiple values for a field, so sorting with this technique "selects" a value as the representative sort value for the document.
By default, the minimum value in the set is selected as the sort value, but this can be customized. Selectors other than the default do have some limitations (see below) to ensure that all selections happen in constant-time for performance.
Like sorting by string, this also supports sorting missing values as first or last, via MissingValue.
Limitations:
- Fields containing System.Int32.MaxValue or more unique values are unsupported.
- Selectors other than the default MIN require optional codec support. However several codecs provided by Lucene, including the current default codec, support this.
Inherited Members
Assembly: Lucene.Net.Sandbox.dll
Syntax
[Serializable]
public class SortedSetSortField : SortField
Constructors
Name | Description |
---|---|
SortedSetSortField(String, Boolean) | Creates a sort, possibly in reverse, by the minimum value in the set for the document. |
SortedSetSortField(String, Boolean, Selector) | Creates a sort, possibly in reverse, specifying how the sort value from the document's set is selected. |
Properties
Name | Description |
---|---|
MissingValue | Set how missing values (the empty set) are sorted. Note that this must be STRING_FIRST or STRING_LAST. |
Selector | Returns the selector in use for this sort |
Methods
Name | Description |
---|---|
Equals(Object) | |
GetComparer(Int32, Int32) | |
GetHashCode() | |
ToString() |