Expand Minimize
This topic has not yet been rated - Rate this topic

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)
public enum 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.

Note Note

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.