Monday, December 8, 2008

Search Url query string parameters

Search Query string parameters:
Search Center Url supports various query string parameters.

Here's the description :

K= Search key

http://localhost/search/results.aspx?k=sharepoint
This url searches for keyword sharepoint

v1= Order By
http://localhost/search/results.aspx?k=sharepoint&v1=date
This url searches for keyword sharepoint and orders the search results by modified date

s= Search Scope
http://localhost/search/results.aspx?k=sharepoint&s=All%20Sites
This url searches for keyword sharepoint in all sites scope

start1= Page start
http://servername/search/results.aspx?k=sharepoint&start1=15
This url searches for keyword sharepoint and returns results from 15th record

6 comments:

Anonymous,  July 3, 2009 at 5:18 AM  

Hi,

Is it possible to give two or more condition over the Search Query string.

Thank you.

Sandeep July 3, 2009 at 7:34 AM  

Yes its possible.
You need to use + in between keywords

Anonymous,  July 6, 2009 at 9:19 AM  

Suppose I have set my Scope to 'People' and I want find all the peoples on the Site With 'First Name' Starting with "A" and 'Last Name' Starting with "A" then How would I build the Search Query.

Thank you.

Sandeep July 6, 2009 at 9:39 AM  

The MOSS/WSS user interface does not support wildcard search out of the box.

Read the article below for building your own Wildcard search webpart

http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/03/06/how-to-use-the-moss-enterprise-search-fulltextsqlquery-class.aspx

Sandeep July 9, 2009 at 9:36 PM  

Hi

You can read through this article for Wildcard search http://snahta.blogspot.com/2009/07/sharepoint-wild-card-property-search.html

Mona,  May 11, 2010 at 3:37 AM  

Hi,
Is there a way i can create a search qyery with multiple scopes and multiple managed properties?