Export (0) Print
Expand All

SortByProperties Element in Microsoft.Search.Query Schema

Last modified: September 15, 2010

Applies to: SharePoint Server 2010

In this article
Attributes
Child Elements
Parent Elements
Element Information


<SortByProperties>
   <SortByProperty name=managedProperty direction={Ascending|Descending}>
   </SortByProperty>
</SortByProperties>

Following is an example of the SortByProperties element in a Microsoft.Search.Query request.

<SortByProperties>
  <SortByProperty name="author" direction="Ascending"></SortByProperty>
  <SortByProperty name="topic" direction="Ascending"></SortByProperty>
</SortByProperties>

If no managed properties are specified for sorting results, by default the results will be sorted by Rank.

Schema name: Microsoft.Search.Query

Applies to: QueryService.Query method (Microsoft.Search.Response.Document), QueryService.QueryEx method (Dataset)

Optional: Yes

Show:
© 2015 Microsoft