SortDirection Enumeration
Defines the sort direction values for ordering search results.
Namespace: Microsoft.Office.Server.Search.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Enumeration SortDirection
'Usage
Dim instance As SortDirection
public enum SortDirection
Members
Member name | Description | |
---|---|---|
Ascending | Specifies that the search results are ordered in ascending order. | |
Descending | Specifies that the search results are ordered in descending order. | |
FQLFormula | The sorting is based on a formula rather than a managed property value. The formula specification is specified using the Property attribute of the Sort class. It is recommended to use the sort by formula syntax in Property instead. This enables you to control the sort direction when you sort by formula. For syntax details, see Sort by Formula. |
Remarks
Use the values from the SortDirection enumeration with the Add() method of the SortCollection class, the SortDirection() property of the Sort class, and the GetCrawlSummaryByHost() method of the GetCrawlSummaryByHost class.
Note
For FAST Search Server 2010 for SharePoint, this property does not apply when specifying sorting based on rank profile.