<?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>entwicklungsgedanken &#187; Search</title>
	<atom:link href="http://www.entwicklungsgedanken.de/tag/search/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.entwicklungsgedanken.de</link>
	<description>Verschiedene Gedanken rund um die Softwareentwicklung</description>
	<lastBuildDate>Thu, 29 Jul 2010 11:09:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Allowing PostgreSQL to use an index when the query uses the LIKE-operator</title>
		<link>http://www.entwicklungsgedanken.de/2009/08/05/allowing-postgresql-to-use-an-index-when-the-query-uses-the-like-operator/</link>
		<comments>http://www.entwicklungsgedanken.de/2009/08/05/allowing-postgresql-to-use-an-index-when-the-query-uses-the-like-operator/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 18:31:14 +0000</pubDate>
		<dc:creator>Eric Bartels</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Webdevelopment]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[like]]></category>
		<category><![CDATA[operator class]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[wildcard]]></category>

		<guid isPermaLink="false">http://www.entwicklungsgedanken.de/?p=312</guid>
		<description><![CDATA[When enabling search in database its very important to have the appropriate indexes defined to make the queries as fast as possible. If your query looks like this (and the appropriate index is defined) the index can be used by the database (the query planner) even with the LIKE-operator. So fast wildcard-searches are possible &#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>When enabling search in database its very important to have the appropriate indexes defined to make the queries as fast as possible. If your query looks like this (and the appropriate index is defined) the index can be used by the database (the query planner) even with the <code>LIKE</code>-operator. So fast wildcard-searches are possible &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> col1 <span style="color: #993333; font-weight: bold;">FROM</span> foobar <span style="color: #993333; font-weight: bold;">WHERE</span> col1 <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'1234%'</span>;</pre></div></div>

<h3>Yes?! Really?!</h3>
<p>In one of our production systems this kind of query (when debugged via <code>EXPLAIN</code> / <code>EXPLAIN ANALYZE</code>) return unexpected results. Every time our comparison operator turns from equality <code>=</code> into <code>LIKE</code> the index for the column is fully ignored and instead a full-table scan (sequential scan) is used by the planner. Things are really slow &#8230;</p>
<h3>I locale you!</h3>
<p>After asking Google its seems some more people having this issue, too.<br />Our database-cluster was initialized with the locale de_DE.utf8. A quick view into the excellent documentation for <code>CREATE INDEX</code> revealed there is an <a href="http://www.postgresql.org/docs/8.3/interactive/indexes-opclass.html">operator class</a> which controls the operators of the index. After adding an index with an operator class for that column the index (&#8220;FoobarWildcardIdx&#8221;) is now used even when the query contains <code>LIKE</code>.</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">INDEX</span> FoobarWildcardIdx <span style="color: #993333; font-weight: bold;">ON</span> foobar <span style="color: #66cc66;">&#40;</span>col1 varchar_pattern_ops<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.entwicklungsgedanken.de/2009/08/05/allowing-postgresql-to-use-an-index-when-the-query-uses-the-like-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One reason for: &#8220;The crawler could not communicate with the server. Check that the server is available and that the firewall access is configured correctly..&#8221;</title>
		<link>http://www.entwicklungsgedanken.de/2009/07/17/one-reason-for-the-crawler-could-not-communicate-with-the-server-check-that-the-server-is-available-and-that-the-firewall-access-is-configured-correctly/</link>
		<comments>http://www.entwicklungsgedanken.de/2009/07/17/one-reason-for-the-crawler-could-not-communicate-with-the-server-check-that-the-server-is-available-and-that-the-firewall-access-is-configured-correctly/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 02:38:19 +0000</pubDate>
		<dc:creator>Eric Bartels</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint-Development]]></category>
		<category><![CDATA[Communication]]></category>
		<category><![CDATA[Crawler]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Search]]></category>

		<guid isPermaLink="false">http://www.entwicklungsgedanken.de/?p=298</guid>
		<description><![CDATA[Today the crawler of the search service of my MOSS-Development system stopped working from &#8220;one second to another&#8221;. The crawl-log showed me this error. The crawler could not communicate with the server. Check that the server is available and that the firewall access is configured correctly.. The start is essential I reconfigured everything, I checked [...]]]></description>
			<content:encoded><![CDATA[<p>Today the crawler of the search service of my MOSS-Development system stopped working from &#8220;one second to another&#8221;. The crawl-log showed me this error.<br />
<code>The crawler could not communicate with the server. Check that the server is available and that the firewall access is configured correctly..</code></p>
<h3>The start is essential</h3>
<p>I reconfigured everything, I checked the database-security, rebooted the virtual machine, re-created the content-sources. Nothing helped &#8230;</p>
<p>
After some digging I found out that the start page of that site-collection (<code>default.aspx</code>) throws an exception due to a faulty web part&#8230;<br />
This can&#8217;t be&#8230; Can it?! I removed the faulty web part from the <code>default.aspx</code> and the start page runs normal &#8230; and so does the crawler!
</p>
<p>
<strong>Because of an erroneous start page the whole crawling process for that site-collection is not working!</strong>
</p>
<h3>Conclusion</h3>
<p>Make sure that the &#8220;entrance&#8221; to your site-collections is wide open and totally working &#8230;</p>
<p>
PS:  Excluding the <code>default.aspx</code> via &#8220;Crawl rules&#8221; does not work. The crawler still stops.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklungsgedanken.de/2009/07/17/one-reason-for-the-crawler-could-not-communicate-with-the-server-check-that-the-server-is-available-and-that-the-firewall-access-is-configured-correctly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System.ServiceProcess.TimeoutException when running psconfig</title>
		<link>http://www.entwicklungsgedanken.de/2008/07/18/systemserviceprocesstimeoutexception-when-running-psconfig/</link>
		<comments>http://www.entwicklungsgedanken.de/2008/07/18/systemserviceprocesstimeoutexception-when-running-psconfig/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 07:36:06 +0000</pubDate>
		<dc:creator>Eric Bartels</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[hotfix]]></category>
		<category><![CDATA[psconfig]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[timeout]]></category>

		<guid isPermaLink="false">http://www.entwicklungsgedanken.de/?p=53</guid>
		<description><![CDATA[Today I was installing a hotfix from Microsoft to get rid of an error. After installing one had to run the SharePoint Products and Technologies Configuration Wizard (psconfig) to complete the installation and update the database-schema. This failed with the following error. Failed to initialize SharePoint Products and Technologies upgrade. An exception of type System.ServiceProcess.TimeoutException [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was installing a <a href="http://support.microsoft.com/kb/950279/en-us">hotfix</a> from Microsoft to get rid of an error. After installing one had to run the <strong>SharePoint Products and Technologies Configuration Wizard</strong> (psconfig) to complete the installation and update the database-schema.</p>
<p>This failed with the following <strong>error</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">Failed to initialize SharePoint Products and Technologies upgrade.
<span style="color: #0000FF;">An</span> exception of type <span style="color: #000000;">System.<span style="color: #0000FF;">ServiceProcess</span></span>.<span style="color: #0000FF;">TimeoutException</span> was thrown.  <span style="color: #0000FF;">Additional</span> exception information<span style="color: #008000;">:</span> Time <span style="color: #0600FF;">out</span> has expired and the operation has not been completed.
<span style="color: #000000;">System.<span style="color: #0000FF;">ServiceProcess</span></span>.<span style="color: #0000FF;">TimeoutException</span><span style="color: #008000;">:</span> Time <span style="color: #0600FF;">out</span> has expired and the operation has not been completed.
   <span style="color: #0000FF;">at</span> <span style="color: #000000;">System.<span style="color: #0000FF;">ServiceProcess</span></span>.<span style="color: #0000FF;">ServiceController</span>.<span style="color: #0000FF;">WaitForStatus</span><span style="color: #000000;">&#40;</span>ServiceControllerStatus desiredStatus, TimeSpan timeout<span style="color: #000000;">&#41;</span>
   at Microsoft.<span style="color: #0000FF;">SharePoint</span>.<span style="color: #0000FF;">PostSetupConfiguration</span>.<span style="color: #0000FF;">ServiceHelper</span>.<span style="color: #0000FF;">Stop</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span> serviceName<span style="color: #000000;">&#41;</span>
   at Microsoft.<span style="color: #0000FF;">SharePoint</span>.<span style="color: #0000FF;">PostSetupConfiguration</span>.<span style="color: #0000FF;">InitializeTask</span>.<span style="color: #0000FF;">StopServicesListedInRegistry</span><span style="color: #000000;">&#40;</span>RegistryHelper registry<span style="color: #000000;">&#41;</span>
   at Microsoft.<span style="color: #0000FF;">SharePoint</span>.<span style="color: #0000FF;">PostSetupConfiguration</span>.<span style="color: #0000FF;">InitializeTask</span>.<span style="color: #0000FF;">StopAllServices</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
   at Microsoft.<span style="color: #0000FF;">SharePoint</span>.<span style="color: #0000FF;">PostSetupConfiguration</span>.<span style="color: #0000FF;">InitializeTask</span>.<span style="color: #0000FF;">PrepareForUpgrade</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
   at Microsoft.<span style="color: #0000FF;">SharePoint</span>.<span style="color: #0000FF;">PostSetupConfiguration</span>.<span style="color: #0000FF;">InitializeTask</span>.<span style="color: #0000FF;">Run</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
   at Microsoft.<span style="color: #0000FF;">SharePoint</span>.<span style="color: #0000FF;">PostSetupConfiguration</span>.<span style="color: #0000FF;">TaskThread</span>.<span style="color: #0000FF;">ExecuteTask</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></pre></div></div>

<p>
I feared that the hotfix was erroneous &#8230; But that was not the case. The <em>Office SharePoint Server Search Service</em> simply had a freeze and was gone away. Manually killing the process (<code>mssearch.exe</code>) helped here.
</p>
<p>Running the <strong>SharePoint Products and Technologies Configuration Wizard</strong> again was now successful and the hotfix was installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklungsgedanken.de/2008/07/18/systemserviceprocesstimeoutexception-when-running-psconfig/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
