<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.dotnetmafia.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx</link><description>I don&amp;#39;t think there are enough complete examples on using the KeywordQuery class out there, so I am posting this today to help out. The example in the SDK is close, but not quite enough. The KeywordQuery class is used to execute a keyword syntax query</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Working with SharePoint Foundation Search API &amp;laquo; DotNetAdil</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5501</link><pubDate>Fri, 03 Feb 2012 10:48:25 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5501</guid><dc:creator>Working with SharePoint Foundation Search API « DotNetAdil</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Working with SharePoint Foundation Search API &amp;amp;laquo; DotNetAdil&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5501" width="1" height="1"&gt;</description></item><item><title>re: How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5337</link><pubDate>Thu, 01 Dec 2011 00:01:31 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5337</guid><dc:creator>Nik Patel</dc:creator><description>&lt;p&gt;Thanks Corey...&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5337" width="1" height="1"&gt;</description></item><item><title>re: How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5284</link><pubDate>Tue, 08 Nov 2011 02:47:54 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5284</guid><dc:creator>CoreyRoth</dc:creator><description>&lt;p&gt;@Neil Yes, it will search the contents of your documents automatically.&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5284" width="1" height="1"&gt;</description></item><item><title>re: How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5274</link><pubDate>Tue, 08 Nov 2011 02:24:21 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5274</guid><dc:creator>CoreyRoth</dc:creator><description>&lt;p&gt;@Nik. &amp;nbsp;I think your best bet would be to put the call to the KeywordQuery class inside a RunWithElevatedPrivileges delegate so that it runs as the application pool account.&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5274" width="1" height="1"&gt;</description></item><item><title>re: How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5266</link><pubDate>Thu, 03 Nov 2011 15:30:41 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5266</guid><dc:creator>Neil Sammut</dc:creator><description>&lt;p&gt;Hi Cory,&lt;/p&gt;
&lt;p&gt;Can this be used to search inside documents?&lt;/p&gt;
&lt;p&gt;Neil&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5266" width="1" height="1"&gt;</description></item><item><title>re: How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5261</link><pubDate>Tue, 01 Nov 2011 12:08:33 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5261</guid><dc:creator>vikram kumar reddy</dc:creator><description>&lt;p&gt;Thanks ....&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5261" width="1" height="1"&gt;</description></item><item><title>re: How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5258</link><pubDate>Tue, 01 Nov 2011 08:19:08 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5258</guid><dc:creator>Sohaib Khan</dc:creator><description>&lt;p&gt;Hi Corey,&lt;/p&gt;
&lt;p&gt;How can i use refiners with KeywordQuery ? I&amp;#39;m getting refinement from sharepoint default refinement panel. &lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5258" width="1" height="1"&gt;</description></item><item><title>re: How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5228</link><pubDate>Tue, 18 Oct 2011 21:29:27 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5228</guid><dc:creator>Nik Patel</dc:creator><description>&lt;p&gt;Thanks Cory for your reply.&lt;/p&gt;
&lt;p&gt;It seems like KeywordQuery API applies security trimming by default when you access the Search Data using API. &lt;/p&gt;
&lt;p&gt;Is there anyway we can override and remove the security trimming? I have requirements which would require data access by users who don&amp;#39;t have source data access crawled in search.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Nik&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5228" width="1" height="1"&gt;</description></item><item><title>re: How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5224</link><pubDate>Tue, 18 Oct 2011 02:45:54 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5224</guid><dc:creator>CoreyRoth</dc:creator><description>&lt;p&gt;@Nik that is the way I always do it. &amp;nbsp;Be sure and specify every property you want in the SelectProperties collection.&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5224" width="1" height="1"&gt;</description></item><item><title>re: How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5202</link><pubDate>Wed, 12 Oct 2011 21:50:00 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5202</guid><dc:creator>Nik Patel</dc:creator><description>&lt;p&gt;Hi Corey,&lt;/p&gt;
&lt;p&gt;Nice blog here.. I am trying to use custom managed properties using keyword API.. I have tried using this code but it seems like some of the OOB properties returns blank.. Any idea?&lt;/p&gt;
&lt;p&gt;e.g. I have custom managed property called - DocumentType and I would like to return some of the OOB ones like SiteName or HitHighlightedProperties. It seems like using SelectProperties, these properties returns blank.. Have you came acroos this?&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;keywordQuery.SelectProperties.Add(&amp;quot;Title&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;keywordQuery.SelectProperties.Add(&amp;quot;SiteName&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;keywordQuery.SelectProperties.Add(&amp;quot;DocumentType&amp;quot;);&lt;/p&gt;
&lt;p&gt;Nik&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5202" width="1" height="1"&gt;</description></item><item><title>re: How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5140</link><pubDate>Fri, 16 Sep 2011 16:33:03 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5140</guid><dc:creator>CoreyRoth</dc:creator><description>&lt;p&gt;@Altaf You can use the KeywordQuery class in a WCF service if the service is hosted on the SharePoint server. &amp;nbsp;If you need to access it remotely then you will have to call Search.asmx to make the query.&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5140" width="1" height="1"&gt;</description></item><item><title>re: How to: Use the MOSS Enterprise Search KeywordQuery class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#5138</link><pubDate>Fri, 16 Sep 2011 15:41:57 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5138</guid><dc:creator>Altaf</dc:creator><description>&lt;p&gt;Hi corey,&lt;/p&gt;
&lt;p&gt;Is there any poossiblity that we can put the above keyword class with all the functionalities in WCF web service????&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5138" width="1" height="1"&gt;</description></item><item><title>One Cause for &amp;ldquo;The creator of this fault did not specify a Reason.&amp;rdquo; &amp;laquo; Paul Galvin&amp;#039;s SharePoint Space</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#4672</link><pubDate>Tue, 10 May 2011 10:01:31 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:4672</guid><dc:creator>One Cause for “The creator of this fault did not specify a Reason.” « Paul Galvin's SharePoint Space</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;One Cause for &amp;amp;ldquo;The creator of this fault did not specify a Reason.&amp;amp;rdquo; &amp;amp;laquo; Paul Galvin&amp;amp;#039;s SharePoint Space&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=4672" width="1" height="1"&gt;</description></item><item><title>Study Guide and Tips n Tricks for Passing MS SharePoint Application Development 070-573 &amp;laquo; Dani&amp;#039;s Blog</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#4558</link><pubDate>Sat, 09 Apr 2011 09:05:55 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:4558</guid><dc:creator>Study Guide and Tips n Tricks for Passing MS SharePoint Application Development 070-573 « Dani's Blog</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Study Guide and Tips n Tricks for Passing MS SharePoint Application Development 070-573 &amp;amp;laquo; Dani&amp;amp;#039;s Blog&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=4558" width="1" height="1"&gt;</description></item><item><title>SharePoint 2010 Enterprise Search KeywordQuery Class, KeywordQuery Class</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx#4501</link><pubDate>Wed, 23 Mar 2011 09:14:22 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:4501</guid><dc:creator>SharePoint 2010 Enterprise Search KeywordQuery Class, KeywordQuery Class</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;SharePoint 2010 Enterprise Search KeywordQuery Class, KeywordQuery Class&lt;/p&gt;
&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=4501" width="1" height="1"&gt;</description></item></channel></rss>
