SortByProperties Element in Microsoft.Search.Query Schema for Enterprise Search
Contains information for sorting the results. Applies to the Enterprise Search Query Web service. For more information, see Enterprise Search Query Web Service Overview.
<SortByProperties>
<SortByProperty name=managedProperty Direction={Ascending|Descending} Order=Integer>
</SortByProperty>
</SortByProperties>
Attributes
Attribute | Description |
---|---|
None |
Child Elements
SortByProperty Element in Microsoft.Search.Query Schema for Enterprise Search |
Parent Elements
Query Element in Microsoft.Search.Query Schema for Enterprise Search |
Example
Following is an example of the SortByProperties element in a Microsoft.Search.Query request.
<SortByProperties>
<SortProperty name="author" direction="ascending" order="1"></SortProperty>
<SortProperty name="topic" direction="ascending" order="2"></SortProperty>
</SortByProperties>
Remarks
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: Query Web method (Microsoft.Search.Response.Document), QueryEx Web method (System.Data.Dataset)
Optional: Yes
See Also
Concepts
Microsoft.Search.Query Schema for Enterprise Search
Enterprise Search Query Web Service Overview