<?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"
	>

<channel>
	<title>Developer Tutorials' Webmaster Blog &#187; fulltext</title>
	<atom:link href="http://www.developertutorials.com/blog/tag/fulltext/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developertutorials.com/blog</link>
	<description>Keeping webmasters up-to-date on technology.</description>
	<pubDate>Tue, 02 Sep 2008 14:59:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>MySQL fulltext search for 3 char words</title>
		<link>http://www.developertutorials.com/blog/php/mysql-fulltext-search-for-3-char-words-35/</link>
		<comments>http://www.developertutorials.com/blog/php/mysql-fulltext-search-for-3-char-words-35/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 16:44:47 +0000</pubDate>
		<dc:creator>Hasin Hayder</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[database]]></category>

		<category><![CDATA[fulltext]]></category>

		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/mysql-fulltext-search-for-3-char-words-35/</guid>
		<description><![CDATA[If you are familiar with full text searching in MySQL, you will be surprised to know that MySQL doesn&#8217;t index words containing 3 or less characters by default. Searching such words ends up with no result. I am sure sometime you also suffered from the same problem. If you are not familiar with this default [...]]]></description>
			<content:encoded><![CDATA[<p>If you are familiar with full text searching in MySQL, you will be surprised to know that MySQL doesn&#8217;t index words containing 3 or less characters by default. Searching such words ends up with no result. I am sure sometime you also suffered from the same problem. If you are not familiar with this default behavior of MySQL you may spend hours after hours trying to find out what went wrong. Well, here is the solution for you <img src='http://www.developertutorials.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>There is a system option named &#8220;ft_min_word_len&#8221; by which you can define the minimum length of words to be indexed. You need to set value to this configuration directive in your MySQL configuration file which is found under &#8220;/etc/mysql&#8221; or &#8220;/etc&#8221;. In windows you can look under windows directory or MySQL home folder. You need to set this value under [mysqld] section.</p>
<p><code>[mysqld]<br />
ft_min_word_len=3</code></p>
<p>There is also a handy method if you don&#8217;t want to change in your configuration file. Just start your mysql daemon with the following command</p>
<p><code>mysqld --ft_min_word_len=3</code></p>
<p>You may also need to rebuild your index.</p>
<p>Now you can search words with 3 characters in your full text queries.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d35" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/php/mysql-fulltext-search-for-3-char-words-35/&amp;title=MySQL+fulltext+search+for+3+char+words" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/php/mysql-fulltext-search-for-3-char-words-35/&amp;title=MySQL+fulltext+search+for+3+char+words" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/php/mysql-fulltext-search-for-3-char-words-35/&amp;title=MySQL+fulltext+search+for+3+char+words" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/php/mysql-fulltext-search-for-3-char-words-35/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
