<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Archive'</title>
		<link>http://www.silverstripe.org/archive/rss</link>
		<atom:link href="http://www.silverstripe.org/archive/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: Fulltext search - eyeballs popping !</title>
			<link>http://www.silverstripe.org/archive/show/14211?start=0#post14370</link>
			<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;After a good night sleep, i found the answer  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt;  so here it stays for everyone that might run into the same problem.&lt;/p&gt;&lt;p&gt;Mysql only allows fulltext search for the indexed columns, no more no less, there are 2 indexes:&lt;/p&gt;&lt;p&gt;TitleSearchFields which has column Title only&lt;br /&gt;SearchFields which has columns Title, MenuTitle, Content, MetaTitle, MetaDescription, MetaKeywords&lt;/p&gt;&lt;p&gt;so, the only searches u can make are with Title only (1st index) or all of the columns on SearchFields index, you need to use them all in the query, no more, no less, or mysql complaints that couldn't find the index with those fulltext indexed columns.&lt;/p&gt;&lt;p&gt;Hope this might be usefull for someone,&lt;/p&gt;&lt;p&gt;Best regards,&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Fulltext search - eyeballs popping ! &lt;a href=&quot;http://www.silverstripe.org/archive/show/14211?start=0#post14370&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/14211?start=0#post14370&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 11 Dec 2007 06:39:23 +1300</pubDate>
			<dc:creator>rbarreiros</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/14211?start=0#post14370</guid>
		</item>
		
		<item>
			<title>Fulltext search - eyeballs popping !</title>
			<link>http://www.silverstripe.org/archive/show/14211#post14211</link>
			<description>&lt;p&gt;Hello guys,&lt;/p&gt;&lt;p&gt;I have a problem (am sure it's mysql related tbh) i've been all night trying to find what's wrong and i can't, must be because am really sleepy...&lt;/p&gt;&lt;p&gt;Trying to do a fulltext search,&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;return ($news) ? DataObject::get('News', &quot;MATCH (Title,MenuTitle) AGAINST ('$this-&amp;gt;MetaKeywords')&quot;) : false;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;If i try a match with Title only, works, with Title and MenuTitle doesn't complaining the column doesn't have fulltext search on, checked the table indexes:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;| SiteTree_Live |          1 | SearchFields      |            1 | Title           | NULL      |          18 |     NULL | NULL   | YES  | FULLTEXT   |         |&lt;br /&gt;| SiteTree_Live |          1 | SearchFields      |            2 | MenuTitle       | NULL      |          18 |     NULL | NULL   | YES  | FULLTEXT   |         |&lt;br /&gt;| SiteTree_Live |          1 | SearchFields      |            3 | Content         | NULL      |          18 |     NULL | NULL   | YES  | FULLTEXT   |         |&lt;br /&gt;| SiteTree_Live |          1 | SearchFields      |            4 | MetaTitle       | NULL      |          18 |     NULL | NULL   | YES  | FULLTEXT   |         |&lt;br /&gt;| SiteTree_Live |          1 | SearchFields      |            5 | MetaDescription | NULL      |          18 |     NULL | NULL   | YES  | FULLTEXT   |         |&lt;br /&gt;| SiteTree_Live |          1 | SearchFields      |            6 | MetaKeywords    | NULL      |          18 |     NULL | NULL   | YES  | FULLTEXT   |         |&lt;br /&gt;| SiteTree_Live |          1 | TitleSearchFields |            1 | Title           | NULL      |          18 |     NULL | NULL   | YES  | FULLTEXT   |&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;2 Indexes, 1 with Title only and another with several oter fields including Title and MenuTitle.&lt;br /&gt;Everytime i try with any field which is not Title i get the same error:&lt;/p&gt;&lt;p&gt;SELECT `SiteTree_Live`.*, `SiteTree_Live`.ID, if(`SiteTree_Live`.ClassName,`SiteTree_Live`.ClassName,'SiteTree') AS RecordClassName FROM `SiteTree_Live` WHERE (MATCH (Title,MenuTitle) AGAINST ('study')) AND (`SiteTree_Live`.ClassName IN ('News')) ORDER BY Sort;&lt;br /&gt;ERROR 1191 (HY000): Can't find FULLTEXT index matching the column list&lt;/p&gt;&lt;p&gt;Any of u guys has any idea what am i doing wrong or what's wrong ?&lt;/p&gt;&lt;p&gt;Best regards,&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Fulltext search - eyeballs popping ! &lt;a href=&quot;http://www.silverstripe.org/archive/show/14211#post14211&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/14211#post14211&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 10 Dec 2007 19:59:18 +1300</pubDate>
			<dc:creator>rbarreiros</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/14211#post14211</guid>
		</item>
		

	</channel>
</rss>