SortByProperties Element in Microsoft.Search.Query Schema

Applies to: SharePoint Server 2010

In this article
Attributes
Child Elements
Parent Elements
Element Information

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

Attributes

None.

Child Elements

SortByProperty Element in Microsoft.Search.Query Schema

Parent Elements

Query Element in Microsoft.Search.Query Schema

Example

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>

Remarks

If no managed properties are specified for sorting results, by default 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

QueryService

Concepts

Using the Query Web Service

Walkthrough: Querying SharePoint Search From a Client Application