C# 클래스 CrownPeak.SearchG2.Query.SortOrder

Class that wraps a single sort order request when executing a CrownPeak.SearchG2.PlainSearch or a CrownPeak.SearchG2.Search{T} on a CrownPeak SearchG2 collection.
파일 보기 프로젝트 열기: Crownpeak/Search-Results-Examples

공개 메소드들

메소드 설명
SortOrder ( ) : SolrNet

Create a new SortOrder object with an empty Field and Direction = Ascending.

SortOrder ( string field, SortDirection direction ) : SolrNet

Create a new SortOrder object with provided Field and Direction.

비공개 메소드들

메소드 설명
ToSolrSortOrder ( ) : SolrNet.SortOrder

Convert the current SolrNet.SortOrder into a format for Solr queries.

메소드 상세

SortOrder() 공개 메소드

Create a new SortOrder object with an empty Field and Direction = Ascending.
public SortOrder ( ) : SolrNet
리턴 SolrNet

SortOrder() 공개 메소드

Create a new SortOrder object with provided Field and Direction.
public SortOrder ( string field, SortDirection direction ) : SolrNet
field string The field to sort by.
direction SortDirection The to sort in.
리턴 SolrNet