<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: FULLTEXT Search with MySQL and CodeIgniter</title>
	<atom:link href="http://joefreeman.co.uk/blog/2009/10/fulltext-search-with-mysql-and-codeigniter/feed/" rel="self" type="application/rss+xml" />
	<link>http://joefreeman.co.uk/blog/2009/10/fulltext-search-with-mysql-and-codeigniter/</link>
	<description>Musings on Software Development, etc</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:15:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Joe</title>
		<link>http://joefreeman.co.uk/blog/2009/10/fulltext-search-with-mysql-and-codeigniter/comment-page-1/#comment-850</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sat, 20 Mar 2010 20:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://joefreeman.co.uk/blog/?p=187#comment-850</guid>
		<description>Hi Yuri. It&#039;s difficult to make guesses without seeing your data and queries. Double-check the &#039;FULLTEXT gotchas&#039; I mention in the &#039;Searching the Data&#039; section.</description>
		<content:encoded><![CDATA[<p>Hi Yuri. It&#8217;s difficult to make guesses without seeing your data and queries. Double-check the &#8216;FULLTEXT gotchas&#8217; I mention in the &#8216;Searching the Data&#8217; section.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri</title>
		<link>http://joefreeman.co.uk/blog/2009/10/fulltext-search-with-mysql-and-codeigniter/comment-page-1/#comment-787</link>
		<dc:creator>Yuri</dc:creator>
		<pubDate>Sun, 07 Mar 2010 12:13:35 +0000</pubDate>
		<guid isPermaLink="false">http://joefreeman.co.uk/blog/?p=187#comment-787</guid>
		<description>Hi, I&#039;m trying to do for your example, but fails to display the search results.
&#039;There are no results for your query.&#039;
Database I filled the content.
Maybe I have missed something?</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m trying to do for your example, but fails to display the search results.<br />
&#8216;There are no results for your query.&#8217;<br />
Database I filled the content.<br />
Maybe I have missed something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://joefreeman.co.uk/blog/2009/10/fulltext-search-with-mysql-and-codeigniter/comment-page-1/#comment-453</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Mon, 21 Dec 2009 19:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://joefreeman.co.uk/blog/?p=187#comment-453</guid>
		<description>I think you basically need to have &#039;default&#039; values for your search parameters. For example, you could have:

&lt;pre lang=&quot;php&quot;&gt;
function search($keywords = &#039;none&#039;, $location = &#039;all&#039;, $start = 0)
&lt;/pre&gt;

Then check within the function for these as special cases. You can&#039;t use the empty string (as I have in my example) because by missing it out, the consecutive slashes in the URL will be ignored.

(I just noticed a bug in my &lt;code&gt;_setup_pagination&lt;/code&gt; function by the way—it wasn&#039;t making use of the &lt;code&gt;$uri_segment&lt;/code&gt;, which may help you out if you&#039;re using additional URL segments.)</description>
		<content:encoded><![CDATA[<p>I think you basically need to have &#8216;default&#8217; values for your search parameters. For example, you could have:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> search<span style="color: #009900;">&#40;</span><span style="color: #000088;">$keywords</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'none'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$location</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'all'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$start</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>Then check within the function for these as special cases. You can&#8217;t use the empty string (as I have in my example) because by missing it out, the consecutive slashes in the URL will be ignored.</p>
<p>(I just noticed a bug in my <code>_setup_pagination</code> function by the way—it wasn&#8217;t making use of the <code>$uri_segment</code>, which may help you out if you&#8217;re using additional URL segments.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://joefreeman.co.uk/blog/2009/10/fulltext-search-with-mysql-and-codeigniter/comment-page-1/#comment-452</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Mon, 21 Dec 2009 18:23:29 +0000</pubDate>
		<guid isPermaLink="false">http://joefreeman.co.uk/blog/?p=187#comment-452</guid>
		<description>Hey there, first let me say thanks! This is a great tutorial.

I&#039;ve converted this to use 2 search fields, one for &quot;keyword(s)&quot; and one for &quot;location&quot; - It works nicely as far as the search part goes but, breaks the pagination. If the user only enters a keyword and no location, then clicks &quot;page 2&quot;, it assumes that &quot;10&quot; is the location. On the other hand if the user enters keyword and location the pagination works fine... Any tips on how I can tell it that there was no location and to use that part of the uri segment for pagination?

thanks!</description>
		<content:encoded><![CDATA[<p>Hey there, first let me say thanks! This is a great tutorial.</p>
<p>I&#8217;ve converted this to use 2 search fields, one for &#8220;keyword(s)&#8221; and one for &#8220;location&#8221; &#8211; It works nicely as far as the search part goes but, breaks the pagination. If the user only enters a keyword and no location, then clicks &#8220;page 2&#8243;, it assumes that &#8220;10&#8243; is the location. On the other hand if the user enters keyword and location the pagination works fine&#8230; Any tips on how I can tell it that there was no location and to use that part of the uri segment for pagination?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://joefreeman.co.uk/blog/2009/10/fulltext-search-with-mysql-and-codeigniter/comment-page-1/#comment-388</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 11 Dec 2009 09:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://joefreeman.co.uk/blog/?p=187#comment-388</guid>
		<description>Thank you a lot for sharing this.

That was sooo helpful.

I only changed the following in my setup: The default value for $results_per_page I set to 10, and I skipped the following if-statement. Because in your setup if no value is passed to the method it will select all entries. I don&#039;t ever want this, so I changed it.</description>
		<content:encoded><![CDATA[<p>Thank you a lot for sharing this.</p>
<p>That was sooo helpful.</p>
<p>I only changed the following in my setup: The default value for $results_per_page I set to 10, and I skipped the following if-statement. Because in your setup if no value is passed to the method it will select all entries. I don&#8217;t ever want this, so I changed it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

