C# Class 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.
Exibir arquivo Open project: Crownpeak/Search-Results-Examples

Public Methods

Method Description
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.

Private Methods

Method Description
ToSolrSortOrder ( ) : SolrNet.SortOrder

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

Method Details

SortOrder() public method

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

SortOrder() public method

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.
return SolrNet