C# Класс Lucene.Net.Sandbox.Queries.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 SetMissingValue(object). Limitations: Fields containing int.MaxValue or more unique values are unsupported. Selectors other than the default Selector.MIN require optional codec support. However several codecs provided by Lucene, including the current default codec, support this.
Наследование: Lucene.Net.Search.SortField
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Equals ( object obj ) : bool
GetComparator ( int numHits, int sortPos ) : FieldComparator
GetHashCode ( ) : int
SortedSetSortField ( string field, bool reverse ) : Lucene.Net.Index

Creates a sort, possibly in reverse, by the minimum value in the set for the document.

SortedSetSortField ( string field, bool reverse, Selector selector ) : Lucene.Net.Index

Creates a sort, possibly in reverse, specifying how the sort value from the document's set is selected.

ToString ( ) : string

Описание методов

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetComparator() публичный Метод

public GetComparator ( int numHits, int sortPos ) : FieldComparator
numHits int
sortPos int
Результат Lucene.Net.Search.FieldComparator

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

SortedSetSortField() публичный Метод

Creates a sort, possibly in reverse, by the minimum value in the set for the document.
public SortedSetSortField ( string field, bool reverse ) : Lucene.Net.Index
field string Name of field to sort by. Must not be null.
reverse bool True if natural order should be reversed.
Результат Lucene.Net.Index

SortedSetSortField() публичный Метод

Creates a sort, possibly in reverse, specifying how the sort value from the document's set is selected.
public SortedSetSortField ( string field, bool reverse, Selector selector ) : Lucene.Net.Index
field string Name of field to sort by. Must not be null.
reverse bool True if natural order should be reversed.
selector Selector /// custom selector for choosing the sort value from the set. /// /// NOTE: selectors other than require optional codec support. ///
Результат Lucene.Net.Index

ToString() публичный Метод

public ToString ( ) : string
Результат string