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.
Afficher le fichier Open project: Crownpeak/Search-Results-Examples

Méthodes publiques

Méthode 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

Méthode Description
ToSolrSortOrder ( ) : SolrNet.SortOrder

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

Method Details

SortOrder() public méthode

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

SortOrder() public méthode

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.
Résultat SolrNet