<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SharePoint Library Search Archives : Binary Bits</title>
	<atom:link href="https://blog.binarybits.net/tag/sharepoint-library-search/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.binarybits.net/tag/sharepoint-library-search/</link>
	<description>Bits &#38; Pieces - A blog by Kannan Balasubramanian</description>
	<lastBuildDate>Sun, 12 Aug 2012 07:00:25 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Using SharePoint 2010&#8217;s OOB search result to search in a particular library</title>
		<link>https://blog.binarybits.net/using-sharepoint-2010s-oob-search-result-to-search-in-a-particular-library/</link>
					<comments>https://blog.binarybits.net/using-sharepoint-2010s-oob-search-result-to-search-in-a-particular-library/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Sun, 12 Aug 2012 06:32:33 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Library Search]]></category>
		<category><![CDATA[SharePoint Search]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=271</guid>

					<description><![CDATA[<p>There was a requirement to have a search text box and a button in landing page and show OOB search result from a single document library. After doing some analysis on OOB search the following is the code which we came up with. The technique is use the query string with query items &#8220;k=query&#8221;, &#8220;cs=This [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/using-sharepoint-2010s-oob-search-result-to-search-in-a-particular-library/">Using SharePoint 2010&rsquo;s OOB search result to search in a particular library</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There was a requirement to have a search text box and a button in landing page and show OOB search result from a single document library.</p>
<p>After doing some analysis on OOB search the following is the code which we came up with.</p>
<p>The technique is use the query string with query items &#8220;k=query&#8221;, &#8220;cs=This List&#8221; &amp; &#8220;u=list&#8217;s absolute url&#8221;. Underlined items are the items which change dynamically.</p>
<blockquote><p>http://server/sites/site/_layouts/OSSSearchResults.aspx?k=MyQuery&amp;cs=This List&amp;u=http://server/sites/site/MyLibrary</p></blockquote>
<pre class="lang:default decode:true">&lt;div&gt;
    &lt;script type="text/javascript"&gt;
        function Search() {
            var libraryName = 'Library'; //Library Name            
            var url = window.location.protocol + "//" + window.location.host + _spPageContextInfo.siteServerRelativeUrl; //http://server/sites/&lt;sitecollection&gt; orhttp://server/sites/&lt;sitecollection&gt;/site
            var searchUrl = url + '/_layouts/OSSSearchResults.aspx';

            var queryText = document.getElementById('querybox').value;
            var queryUrl = searchUrl + '?k=' + queryText + '&amp;cs=This List&amp;u=' + url + '/' + libraryName; //http://server/sites/&lt;sitecollection&gt;/_layouts/OSSSearchResults.aspx?k=&lt;Query from input box&gt;&amp;cs=This List&amp;u=http://server/sites/&lt;site&gt;/&lt;Library Name&gt;

            window.navigate(queryUrl);
            //alert(queryUrl);
        }            
    &lt;/script&gt;
    &lt;input id="querybox" name="querybox" /&gt;
    &lt;input onclick="Search()" name="SearchInLibrary" value="Search In Adapter Document Library" type="button" /&gt;
&lt;/div&gt;</pre>
<p>The post <a href="https://blog.binarybits.net/using-sharepoint-2010s-oob-search-result-to-search-in-a-particular-library/">Using SharePoint 2010&rsquo;s OOB search result to search in a particular library</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/using-sharepoint-2010s-oob-search-result-to-search-in-a-particular-library/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: blog.binarybits.net @ 2026-04-23 06:43:58 by W3 Total Cache
-->