<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>2 letter on Tutes Club</title><link>https://tutes.in/tag/2-letter/</link><description>Recent content in 2 letter on Tutes Club</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 02 Mar 2018 00:19:59 +0000</lastBuildDate><atom:link href="https://tutes.in/tag/2-letter/index.xml" rel="self" type="application/rss+xml"/><item><title>How to tweak Magento 2 for two letter search in fulltext mode</title><link>https://tutes.in/how-to-tweak-magento-2-for-two-letter-search-in-fulltext-mode/</link><pubDate>Fri, 02 Mar 2018 00:19:16 +0000</pubDate><guid>https://tutes.in/how-to-tweak-magento-2-for-two-letter-search-in-fulltext-mode/</guid><description>&lt;h2 id="the-problem"&gt;The problem:&lt;/h2&gt;
&lt;p&gt;Magento 2 wont return any search results if the search token is 2 letters in length.&lt;/p&gt;
&lt;h2 id="solution"&gt;Solution:&lt;/h2&gt;
&lt;p&gt;Alter MySQL conf file. Edit my.cnf file on your server&lt;br&gt;
In CentOS, use command&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;nano /etc/my.cnf
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;and add the following lines:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ft_min_word_len=2
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;innodb_ft_min_token_size=2
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Save using &lt;kbd&gt;CTRL+x&lt;/kbd&gt; and then restart mysqld service.&lt;br&gt;
Now we need to regenerate the index in order to get updated search results. Use the following SQL commands to regenerate:&lt;/p&gt;</description></item></channel></rss>