<?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: Ruby Text Search</title>
	<atom:link href="http://davedupre.com/2007/08/02/ruby-text-search/feed/" rel="self" type="application/rss+xml" />
	<link>http://davedupre.com/2007/08/02/ruby-text-search/</link>
	<description>Some random thoughts - Go big or stay home!</description>
	<lastBuildDate>Wed, 10 Mar 2010 20:53:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2007/08/02/ruby-text-search/comment-page-2/#comment-388</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 24 Feb 2009 15:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2007/08/02/ruby-text-search/#comment-388</guid>
		<description>I added ARTICLE_WORDS to the github repository. Sorry about that.</description>
		<content:encoded><![CDATA[<p>I added ARTICLE_WORDS to the github repository. Sorry about that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2007/08/02/ruby-text-search/comment-page-2/#comment-387</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 24 Feb 2009 15:37:47 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2007/08/02/ruby-text-search/#comment-387</guid>
		<description>That&#039;s what happens when there are not enough tests. You miss something. Sorry about that. I tried things in several of my other projects, and everything. However, all those projects had ARTICLE_WORDS define. I will fix ASAP.</description>
		<content:encoded><![CDATA[<p>That&#8217;s what happens when there are not enough tests. You miss something. Sorry about that. I tried things in several of my other projects, and everything. However, all those projects had ARTICLE_WORDS define. I will fix ASAP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jerry</title>
		<link>http://davedupre.com/2007/08/02/ruby-text-search/comment-page-2/#comment-386</link>
		<dc:creator>jerry</dc:creator>
		<pubDate>Tue, 24 Feb 2009 15:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2007/08/02/ruby-text-search/#comment-386</guid>
		<description>Hi does the plugin include all methods that are needed? Iam getting errors about unknown methods. I think the missing methods were inside the extensions.rb file before .

Below is the line that gives me errors:

 when /^(\w&#124;(#{String::ARTICLE_WORDS.join(&#039;&#124;&#039;)}))$/</description>
		<content:encoded><![CDATA[<p>Hi does the plugin include all methods that are needed? Iam getting errors about unknown methods. I think the missing methods were inside the extensions.rb file before .</p>
<p>Below is the line that gives me errors:</p>
<p> when /^(\w|(#{String::ARTICLE_WORDS.join(&#8216;|&#8217;)}))$/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2007/08/02/ruby-text-search/comment-page-2/#comment-371</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 18 Feb 2009 20:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2007/08/02/ruby-text-search/#comment-371</guid>
		<description>OK. I quickly wrapped up what I have as a plugin. You can get it on GitHub. See http://github.com/gobigdave/simple_model_search/tree/master. From the links there, you should be able to easily install search as a plugin.

As I mentioned, there are no real tests in there. If I get a chance, I will add some.

Don&#039;t forget to remove your old version of search.lib.</description>
		<content:encoded><![CDATA[<p>OK. I quickly wrapped up what I have as a plugin. You can get it on GitHub. See <a href="http://github.com/gobigdave/simple_model_search/tree/master" rel="nofollow">http://github.com/gobigdave/simple_model_search/tree/master</a>. From the links there, you should be able to easily install search as a plugin.</p>
<p>As I mentioned, there are no real tests in there. If I get a chance, I will add some.</p>
<p>Don&#8217;t forget to remove your old version of search.lib.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2007/08/02/ruby-text-search/comment-page-2/#comment-370</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 18 Feb 2009 19:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2007/08/02/ruby-text-search/#comment-370</guid>
		<description>I haven&#039;t gotten around to turning this into a plugin yet because I don&#039;t think I have enough tests.  Been working on 3 other projects so haven&#039;t had the cycles to give this what it deserves.  Let me see what I can do tonight.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t gotten around to turning this into a plugin yet because I don&#8217;t think I have enough tests.  Been working on 3 other projects so haven&#8217;t had the cycles to give this what it deserves.  Let me see what I can do tonight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://davedupre.com/2007/08/02/ruby-text-search/comment-page-2/#comment-369</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 18 Feb 2009 14:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2007/08/02/ruby-text-search/#comment-369</guid>
		<description>Dave,

Great work here BUT it looks like you have added a lot since the last posting of your files. 

Did you ever turn this into a plugin and, if not, where can we get the latest and greated?

Thanks,

Josh</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>Great work here BUT it looks like you have added a lot since the last posting of your files. </p>
<p>Did you ever turn this into a plugin and, if not, where can we get the latest and greated?</p>
<p>Thanks,</p>
<p>Josh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2007/08/02/ruby-text-search/comment-page-2/#comment-353</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 06 Feb 2009 02:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2007/08/02/ruby-text-search/#comment-353</guid>
		<description>Good catch! In my production apps, I require more than one character before I allow a search, so I never saw or tested this case. I can&#039;t say exactly why it happens, but I have some ideas. I&#039;m guessing that something about make_chunks doesn&#039;t like a single character.  I also know articles and some characters are removed (punctuation, etc.). If you remove everything, you end up with a where clause that is something like &quot;table.col like &#039;%%&#039;, and that will match everything.

The question is whether it would a valid case to do a full text search for a single character. Normally, it&#039;s no, so I would probably lean towards handling conditions being blank the same as the search text being blank and return an empty collection instead of everything.</description>
		<content:encoded><![CDATA[<p>Good catch! In my production apps, I require more than one character before I allow a search, so I never saw or tested this case. I can&#8217;t say exactly why it happens, but I have some ideas. I&#8217;m guessing that something about make_chunks doesn&#8217;t like a single character.  I also know articles and some characters are removed (punctuation, etc.). If you remove everything, you end up with a where clause that is something like &#8220;table.col like &#8216;%%&#8217;, and that will match everything.</p>
<p>The question is whether it would a valid case to do a full text search for a single character. Normally, it&#8217;s no, so I would probably lean towards handling conditions being blank the same as the search text being blank and return an empty collection instead of everything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eyal</title>
		<link>http://davedupre.com/2007/08/02/ruby-text-search/comment-page-2/#comment-352</link>
		<dc:creator>Eyal</dc:creator>
		<pubDate>Fri, 06 Feb 2009 01:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2007/08/02/ruby-text-search/#comment-352</guid>
		<description>Hi Dave, another question:

I noticed that in both my app and your profit app, a search on only one character gives me back all the results in the table. 

As in Profit.search(&quot;$&quot;) == Profit.find(:all). Any idea why this is?

Thanks,
Eyal</description>
		<content:encoded><![CDATA[<p>Hi Dave, another question:</p>
<p>I noticed that in both my app and your profit app, a search on only one character gives me back all the results in the table. </p>
<p>As in Profit.search(&#8220;$&#8221;) == Profit.find(:all). Any idea why this is?</p>
<p>Thanks,<br />
Eyal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2007/08/02/ruby-text-search/comment-page-2/#comment-350</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 05 Feb 2009 01:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2007/08/02/ruby-text-search/#comment-350</guid>
		<description>No problem. Glad I could help.</description>
		<content:encoded><![CDATA[<p>No problem. Glad I could help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eyal</title>
		<link>http://davedupre.com/2007/08/02/ruby-text-search/comment-page-2/#comment-349</link>
		<dc:creator>Eyal</dc:creator>
		<pubDate>Thu, 05 Feb 2009 00:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2007/08/02/ruby-text-search/#comment-349</guid>
		<description>Of course! Thanks so much. I should have seen that. self.charities_options is for the early stages of my development when I only have a few charities and I want to create a drop down select menu. 

Thanks again!</description>
		<content:encoded><![CDATA[<p>Of course! Thanks so much. I should have seen that. self.charities_options is for the early stages of my development when I only have a few charities and I want to create a drop down select menu. </p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
