Class SortedSetSortField

java.lang.Object
org.apache.lucene.search.SortField
org.apache.lucene.search.SortedSetSortField

public class SortedSetSortField extends SortField
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 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 setMissingValue(Object).

See Also: