SortByProperty Element in Microsoft.Search.Query Schema
Applies to: SharePoint Server 2010
In this article
Attributes
Child Elements
Parent Elements
Element Information
<SortByProperty
name=managedProperty
direction={Ascending|Descending}>
</SortByProperty>
Attributes
Attribute |
Description |
---|---|
name |
The name of the managed property to sort on. The following special conditions apply to FAST Search Server 2010 for SharePoint only:
|
direction |
Specifies the direction (ascending or descending) to sort the results.
Note This attribute is not used when specifying a rank profile name in the name attribute (rank sorting is always descending). This applies to FAST Search Server 2010 for SharePoint only. The default value is Descending. |
Child Elements
None.
Parent Elements
Remarks
If this element is not present, the results will be sorted by Rank.
Element Information
Schema name: Microsoft.Search.Query
Applies to: QueryService.Query method (Microsoft.Search.Response.Document), QueryService.QueryEx method (Dataset)
Optional: Yes
See Also
Reference
Concepts
Walkthrough: Querying SharePoint Search From a Client Application