4 out of 48 rated this helpful - Rate this topic

Enterprise Search URL Syntax Reference

Office 2007

You can execute search queries against the Enterprise Search in Microsoft Office SharePoint Server 2007 service by encoding your query in a URL and posting it to the search page.

Parameters

The following table describes the URL search parameters that you can use with Enterprise Search.

URL Parameter Description Example

k

Specifies the keywords. You can only specify one value for this parameter.

results.aspx?k=sharepoint%20search

s

Specifies the search scope. This parameter can contain multiple values, separated by %2c.

results.aspx?s=SDKContent

results.aspx?s=SDKContent%2cTechnicalArticles

v

Specifies the result view that is to be used for the query.

This parameter must be either:

relevance - results are sorted by relevance

date - results are sorted by date

results.aspx?v=date

results.aspx?v=relevance

start

Specifies which results page number to show.

results.aspx?start=3

Remarks

If your search results page contains multiple queries, you can specify which query the parameter applies to by appending a number from 1 to 5, indicating the Search Query Results ID, between the parameter and the "=" character in the URL.

See Also

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Additional URL Parameter
The URL parameter "a" can be used to avoid additional query terms appearing in the search text box.

E.g. In order to search for the keyword "sharepoint" within a managed property "companies", you should enter "sharepoint companies:microsoft" in the search text box.
This can be avoided by using the following URL - http://www.contoso.com/search/results.aspx?k=sharepoint&a=companies:microsoft
Additional QueryString parameter
You can also specify the u parameter

u = http;//www.contoso.com     This will restrict the result set to include only items that are located on the url specified