<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Content on Matt Thornton</title>
    <link>http://localhost:1313/tags/content/</link>
    <description>Recent content in Content on Matt Thornton</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 05 Mar 2012 15:15:43 +0000</lastBuildDate><atom:link href="http://localhost:1313/tags/content/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SharePoint 2010 &#43; Search within document sets</title>
      <link>http://localhost:1313/tech/sharepoint/sharepoint-2010-search-within-document-sets/</link>
      <pubDate>Mon, 05 Mar 2012 15:15:43 +0000</pubDate>
      
      <guid>http://localhost:1313/tech/sharepoint/sharepoint-2010-search-within-document-sets/</guid>
      
        <description>&lt;p&gt;I could play a game of “state the obvious” and say that SharePoint 2010 search is powerful. It&amp;rsquo;s really an incredible beast - and that&amp;rsquo;s even without any FAST goodies in there. But something that isn&amp;rsquo;t obviously supported OOTB but seems there&amp;rsquo;s a few people out there trying to do - search &lt;strong&gt;within&lt;/strong&gt; folders, or in my case, Document Sets. SharePoint search was already configured and, actually, I &lt;em&gt;could&lt;/em&gt; search within document sets, by doing a site wide search and then using the refinement panel (on the left hand side of a search result page in a search center) to narrow it down to my document set. What I wanted to do was perform this search directly from a search box.&lt;/p&gt;
&lt;p&gt;As you use the refinement panel, you&amp;rsquo;ll notice that the URL changes, as you stack up the filters, and as it happens, that&amp;rsquo;s all that&amp;rsquo;s required is a properly crafted URL:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;br /&amp;gt; http://yoursite/_layouts/OssSearchResults.aspx?k=[searchterms] &amp;lt;strong&amp;gt;site:&amp;quot;http://yoursite/yourlibrary/yourdocset&amp;quot;&amp;lt;/strong&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Note the highlighted part - you can restrict your search results to a specified document set (or folder) by supplying the URL in to the &lt;strong&gt;site:&lt;/strong&gt; refinement option/filter.&lt;/p&gt;
&lt;p&gt;With that bit taken care of, the challenge was to get a searchbox that would do this dynamically - i.e., craft the URL properly to apply the filter and direct through to the search results page properly. It&amp;rsquo;s possible using a standard search box and the trusty old Content Editor.&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>