A colleague asked me today if there was a way to search my blog for something specific.
In my response, I pointed out that you can narrow your search results from Bing to a specific site.
For example, suppose you were looking for a blog post that I wrote about faceted search. All you need to do is specify the appropriate keywords as well as the corresponding property filter:
faceted search site:blogs.msdn.com/jjameson
If you browse to www.bing.com and then type this into the search box, you will find that it generates a search results URL similar to the following:
It wasn’t all that long ago that you could only specify top-level domain names when searching by a specific site. Fortunately, those days are gone and consequently narrowly-focused results are really easy, even when using the major search engines on the Internet.
Note that you can filter results in a similar manner with several other search engines, including Microsoft Office SharePoint Server (MOSS) 2007. In many cases, you specify the URL of the site in the search query terms. However, that’s not always the only way to do it.
In MOSS 2007, you can specify a contextual scope URL (a.k.a. the “u” query string parameter).
For example, if you browse to the home page for KPMG Global (http://www.kpmg.com/global/en), and search for “tax audit“, you will find it generates a search results URL similar to the following:
While not quite as easy to read due to URL encoding of the parameter, the contextual scope URL in MOSS 2007 makes it relatively simple to implement search functionality like the “Search this site” and “Search all sites” features on the KPMG site.