<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Windows SharePoint Services Hosting</title><link>http://forums.asp.net/184.aspx</link><description>Discuss the operation of Windows SharePoint Services in a services provider hosted environment.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: search wss subsite</title><link>http://forums.asp.net/thread/2933243.aspx</link><pubDate>Wed, 11 Feb 2009 11:13:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2933243</guid><dc:creator>BlowTouch</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2933243.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=184&amp;PostID=2933243</wfw:commentRss><description>&lt;p&gt;Have you been able to resolve this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;try the following:&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;query.QueryText = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;SELECT SiteName, FirstName FROM Scope() WHERE &lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;Contains(URL,&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + Page.Request.Url.GetLeftPart(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;UriPartial&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Authority) + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;)&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>search wss subsite</title><link>http://forums.asp.net/thread/2440655.aspx</link><pubDate>Mon, 23 Jun 2008 15:06:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2440655</guid><dc:creator>joel23</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2440655.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=184&amp;PostID=2440655</wfw:commentRss><description>&lt;hr style="COLOR:#d1d1e1;" /&gt;

&lt;p&gt;&lt;/p&gt;
&lt;div id="post_message_3208"&gt;hi all&lt;br /&gt;I am using wss 3.0. &lt;br /&gt;i using the following code to search site contacts. but unfortunately i nether find the site nor contact. &lt;br /&gt;&lt;br /&gt;the main site is &amp;quot;http://wssdev&amp;quot;.&lt;br /&gt;and the subsite that i want to search is &amp;quot;http://wssdev/bate&amp;quot;.&lt;br /&gt;&lt;br /&gt;the code:&lt;br /&gt;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;DataTable resultsDataTable = new DataTable();&lt;br /&gt;&lt;br /&gt;SPSite site = new SPSite(&amp;quot;http://wssdev/bate&amp;quot;);&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;Microsoft.SharePoint.Search.Query.Query query =&lt;br /&gt;new Microsoft.SharePoint.Search.Query.FullTextSqlQuery (site);&lt;br /&gt;&lt;br /&gt;query.ResultTypes = ResultType.RelevantResults; &lt;br /&gt;query.QueryText = @&amp;quot;SELECT SiteName, FirstName FROM SCOPE()&amp;quot;;&lt;br /&gt;ResultTableCollection resultTables = query.Execute();&lt;br /&gt;&lt;br /&gt;but in the site column i find just the &amp;quot;http://wssdev&amp;quot; site but not &amp;quot;http://wssdev/bate&amp;quot;. and in the FirstName Field I don&amp;#39;t find any of the &amp;quot;http://wssdev/bate&amp;quot; Contacs. &lt;br /&gt;&lt;br /&gt;Does any body have an idea!!&lt;br /&gt;Do I need to configure anything?&lt;br /&gt;&lt;br /&gt;thanks in advance&lt;/div&gt;</description></item></channel></rss>