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
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
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