<?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>Peter Gerritsen&#039;s blog &#187; Search</title>
	<atom:link href="http://blog.petergerritsen.nl/tag/search/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.petergerritsen.nl</link>
	<description>about .Net and SharePoint development</description>
	<lastBuildDate>Wed, 28 Jul 2010 08:28:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>SharePoint 2010 Search: Property Restriction in Keyword Queries</title>
		<link>http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 12:01:57 +0000</pubDate>
		<dc:creator>Peter Gerritsen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[#sp]]></category>
		<category><![CDATA[#SP2010NL]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SP2010]]></category>

		<guid isPermaLink="false">http://blog.petergerritsen.nl/?p=808</guid>
		<description><![CDATA[The new version of SharePoint offers more capabilities in the keyword syntax to enhance the search experience. While in the previous version you had to resort to FullText SQL queries, a lot of things can now be accomplished with keyword syntax. For instance if you would like to filter on a date, you could use [...]<p><a href="http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/">SharePoint 2010 Search: Property Restriction in Keyword Queries</a> is a post from: <a href="http://blog.petergerritsen.nl">Peter Gerritsen&#039;s blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p>The new version of SharePoint offers more capabilities in the keyword syntax to enhance the search experience.<br />
While in the previous version you had to resort to FullText SQL queries, a lot of things can now be accomplished with keyword syntax.</p>
<p>For instance if you would like to filter on a date, you could use the following query:</p>
<pre class="brush: php">LastModifiedTime&amp;amp;amp;gt;=01/06/2010</pre>
<p>The actual format of the date depends on your regional settings (I&#8217;m using Dutch (nl-NL) in this case).</p>
<p>To search within a range of dates you can use the following query syntax:</p>
<pre class="brush: php">LastModifiedTime:28/06/2010..30/06/2010</pre>
<p>To exclude items you could use the following syntax:</p>
<pre class="brush: php">LastModifiedTime&amp;lt;&amp;gt;28/06/2010</pre>
<p>More info from MSDN about keyword syntax kan be found here: <a  href="http://msdn.microsoft.com/en-us/library/ee558911.aspx">http://msdn.microsoft.com/en-us/library/ee558911.aspx</a></p>
<!-- RO Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home?status=http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Twitter"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/twitter.png" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Twitter" alt="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Twitter" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.myspace.com/Modules/PostTo/Pages/?t=SharePoint+2010+Search%3A+Property+Restriction+in+Keyword+Queries&#038;c=http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to MySpace"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/myspace.png" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to MySpace" alt="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to MySpace" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/&#038;title=SharePoint+2010+Search%3A+Property+Restriction+in+Keyword+Queries" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Del.icio.us"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/delicious.png" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Del.icio.us" alt="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Del.icio.us" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&#038;url=http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/&#038;title=SharePoint+2010+Search%3A+Property+Restriction+in+Keyword+Queries" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to digg"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/digg.png" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to digg" alt="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to digg" /></a><br /><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/share.php?u=http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/&#038;t=SharePoint+2010+Search%3A+Property+Restriction+in+Keyword+Queries" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to FaceBook"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/facebook.png" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to FaceBook" alt="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to FaceBook" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Technorati"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/technorati.png" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Technorati" alt="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Technorati" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/&#038;title=SharePoint+2010+Search%3A+Property+Restriction+in+Keyword+Queries" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Stumble Upon"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/stumbleupon.png" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Stumble Upon" alt="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Stumble Upon" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&#038;output=popup&#038;bkmk=http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/&#038;title=SharePoint+2010+Search%3A+Property+Restriction+in+Keyword+Queries" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Google Bookmarks"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/google.png" title="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Google Bookmarks" alt="Add 'SharePoint 2010 Search: Property Restriction in Keyword Queries' to Google Bookmarks" /></a></div>
<!-- RO Social Bookmarks END --><p><a  href="http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/">SharePoint 2010 Search: Property Restriction in Keyword Queries</a> is a post from: <a  href="http://blog.petergerritsen.nl">Peter Gerritsen&#039;s blog</a></p>
<div class="fblike" style="height:25px; height:25px; overflow:hidden;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.petergerritsen.nl%2F2010%2F07%2F01%2Fsharepoint-2010-search-property-restriction-keyword-queries%2F&amp;layout=standard&amp;show_faces=false&amp;width=320&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allow Transparency="true" style="border:none; overflow:hidden; width:320px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://blog.petergerritsen.nl/2010/07/01/sharepoint-2010-search-property-restriction-keyword-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MOSS Search and browser languages</title>
		<link>http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 21:03:01 +0000</pubDate>
		<dc:creator>Peter Gerritsen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Search]]></category>

		<guid isPermaLink="false">http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/</guid>
		<description><![CDATA[We had a very strange issue with some search functionality we developed for a portal. We created an option to search for documents in a library by specifying the path to a specific folder. This is done by specifying a keyword query like 9:”folder/subfolder”. In this case the searchproperty 9 contains the path of the item. While this [...]<p><a href="http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/">MOSS Search and browser languages</a> is a post from: <a href="http://blog.petergerritsen.nl">Peter Gerritsen&#039;s blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p>We had a very strange issue with some search functionality we developed for a portal. We created an option to search for documents in a library by specifying the path to a specific folder.</p>
<p>This is done by specifying a keyword query like <em>9:”folder/subfolder”</em>. In this case the searchproperty <em>9</em> contains the path of the item.</p>
<p>While this worked well on our development environments and most of the browsers we tested on, a some browsers it failed. My colleague Arthur discovered it had something to do with the language setting of the browser. When we used Dutch (nl-NL) as preferred language the standard core search results web part didn’t return any items when using a query with a “/” in the conditions.</p>
<p>If you execute a KeyWordQuery or FullTextSqlQuery in your own code you have the possibility to specify a culture to use in the search. Unfortunately the core search results web part doesn’t provide you with an option to do this easily. In the end I came up with a “hack” to make this work. Just change the preferred languages the browser sends with each request in the OnInit of a webpart that inherits from the standards core results web part like so:</p>
<pre class="brush: csharp">
protected override void OnInit(EventArgs e)
{
	if (!string.IsNullOrEmpty(CultureOverrideTo))
	{
		if (this.Page.Request.UserLanguages.Length &gt; 0)
			this.Page.Request.UserLanguages[0] = “en-US”;
	}

	base.OnInit(e);
}
</pre>
<p>Note: Because this modifies the current request this can have some consequences on other web parts on your page. So use it with care.</p>
<p>UPDATE:</p>
<p>This same behavior can also occur in custom search code. To fix this, simply specify the Culture of your KeyWordQuery or FullTextSqlQuery.</p>
<!-- RO Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home?status=http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/" title="Add 'MOSS Search and browser languages' to Twitter"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/twitter.png" title="Add 'MOSS Search and browser languages' to Twitter" alt="Add 'MOSS Search and browser languages' to Twitter" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.myspace.com/Modules/PostTo/Pages/?t=MOSS+Search+and+browser+languages&#038;c=http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/" title="Add 'MOSS Search and browser languages' to MySpace"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/myspace.png" title="Add 'MOSS Search and browser languages' to MySpace" alt="Add 'MOSS Search and browser languages' to MySpace" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/&#038;title=MOSS+Search+and+browser+languages" title="Add 'MOSS Search and browser languages' to Del.icio.us"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/delicious.png" title="Add 'MOSS Search and browser languages' to Del.icio.us" alt="Add 'MOSS Search and browser languages' to Del.icio.us" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&#038;url=http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/&#038;title=MOSS+Search+and+browser+languages" title="Add 'MOSS Search and browser languages' to digg"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/digg.png" title="Add 'MOSS Search and browser languages' to digg" alt="Add 'MOSS Search and browser languages' to digg" /></a><br /><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/share.php?u=http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/&#038;t=MOSS+Search+and+browser+languages" title="Add 'MOSS Search and browser languages' to FaceBook"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/facebook.png" title="Add 'MOSS Search and browser languages' to FaceBook" alt="Add 'MOSS Search and browser languages' to FaceBook" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/" title="Add 'MOSS Search and browser languages' to Technorati"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/technorati.png" title="Add 'MOSS Search and browser languages' to Technorati" alt="Add 'MOSS Search and browser languages' to Technorati" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/&#038;title=MOSS+Search+and+browser+languages" title="Add 'MOSS Search and browser languages' to Stumble Upon"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/stumbleupon.png" title="Add 'MOSS Search and browser languages' to Stumble Upon" alt="Add 'MOSS Search and browser languages' to Stumble Upon" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&#038;output=popup&#038;bkmk=http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/&#038;title=MOSS+Search+and+browser+languages" title="Add 'MOSS Search and browser languages' to Google Bookmarks"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/google.png" title="Add 'MOSS Search and browser languages' to Google Bookmarks" alt="Add 'MOSS Search and browser languages' to Google Bookmarks" /></a></div>
<!-- RO Social Bookmarks END --><p><a  href="http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/">MOSS Search and browser languages</a> is a post from: <a  href="http://blog.petergerritsen.nl">Peter Gerritsen&#039;s blog</a></p>
<div class="fblike" style="height:25px; height:25px; overflow:hidden;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.petergerritsen.nl%2F2009%2F02%2F26%2Fmoss-search-and-browser-languages%2F&amp;layout=standard&amp;show_faces=false&amp;width=320&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allow Transparency="true" style="border:none; overflow:hidden; width:320px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://blog.petergerritsen.nl/2009/02/26/moss-search-and-browser-languages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
