Customize the SharePoint search directly in the url

SharePoint 2010 search parameter in the URL:

k
  Specify a keyword. Only one key word can be used.
results.aspx?k=sharepoint%20search

s
Specify a search scope. Can contain multiple values separated by %2c.

results.aspx?s=SDKContent
results.aspx?s=SDKContent%2cTechnicalArticles

v
Specify the result to sort by:
-relevance
-date

results.aspx?v=date
results.aspx?v=relevance

start
Specifying the page Result
results.aspx?start=3

a
Specify the property on which to filter.
Ex: Search SharePoint site where the property Companies=Microsoft
results.aspx?k=sharepoint&a=companies:microsoft

u
Specify the url from which the results will appear (without creating a new Scope)

results.aspx?k=sharepoint&u=http://www.contoso.com

Ref MSDN: http://bit.ly/wI75g0

On another note you can create a scope to include only the content classes that you want.

In search administration simply create a scope and add rules where the property contentclass=

here are some cases contentclass=STS_Web   will get you only Sites as results

case “STS_Web”:                             // Site
case “STS_List_850”:                        // Page Library
case “STS_ListItem_850”:                    // Page
case “STS_List_DocumentLibrary”:            // Document Library
case “STS_ListItem_DocumentLibrary”:        // Document Library Items
case “STS_List”:                            // Custom List
case “STS_ListItem”:                        // Custom List Item
case “STS_List_Links”:                      // Links List
case “STS_ListItem_Links”:                  // Links List Item
case “STS_List_Tasks”:                      // Tasks List
case “STS_ListItem_Tasks”:                  // Tasks List Item
case “STS_List_Events”:                     // Events List
case “STS_ListItem_Events”:                 // Events List Item
case “STS_List_Announcements”:              // Announcements List
case “STS_ListItem_Announcements”:          // Announcements List Item
case “STS_List_Contacts”:                   // Contacts List
case “STS_ListItem_Contacts”:               // Contacts List Item
case “STS_List_DiscussionBoard”:            // Discussion List
case “STS_ListItem_DiscussionBoard”:        // Discussion List Item
case “STS_List_IssueTracking”:              // Issue Tracking List
case “STS_ListItem_IssueTracking”:          // Issue Tracking List Item
case “STS_List_GanttTasks”:                 // Project Tasks List
case “STS_ListItem_GanttTasks”:             // Project Tasks List Item
case “STS_List_Survey”:                     // Survey List
case “STS_ListItem_Survey”:                 // Survey List Item
case “STS_List_PictureLibrary”:             // Picture Library
case “STS_ListItem_PictureLibrary”:         // Picture Library Item
case “STS_List_WebPageLibrary”:             // Web Page Library
case “STS_ListItem_WebPageLibrary”:         // Web Page Library Item
case “STS_List_XMLForm”:                    // Form Library
case “STS_ListItem_XMLForm”:                // Form Library Item

Advertisements

2 thoughts on “Customize the SharePoint search directly in the url

  1. Penguin

    Its a shame you dont have a donate button! Id without a doubt donate to this fantastic blog! I suppose for now ill settle for bookmarking and adding your RSS feed to my Google account. I look forward to new updates and will share this blog with my Facebook group. Talk soon!

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s