Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SortDirection enumeration
Collapse the table of content
Expand the table of content

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)

'Declaration
Public Enumeration SortDirection
'Usage
Dim instance As SortDirection

Member nameDescription
AscendingSpecifies that the search results are ordered in ascending order.
DescendingSpecifies that the search results are ordered in descending order.
FQLFormulaThe sorting is based on a formula rather than a managed property value. The formula specification is specified by using the Property attribute of the Sort class. It is recommended to instead use the sort by formula syntax in Property. This syntax enables you to control the sort direction when you sort by formula. For syntax details, see Sort by Formula.

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.

NoteNote

For FAST Search Server 2010 for SharePoint, this property does not apply when specifying sorting based on rank profile.

Show:
© 2015 Microsoft