<?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: SimplySearchable plugin</title>
	<atom:link href="http://rida.me/blog/2008/11/05/simplysearchable-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://rida.me/blog/2008/11/05/simplysearchable-plugin/</link>
	<description>Rida's Zone in Cyberspace</description>
	<pubDate>Wed, 08 Feb 2012 04:56:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rida</title>
		<link>http://rida.me/blog/2008/11/05/simplysearchable-plugin/comment-page-1/#comment-107910</link>
		<dc:creator>Rida</dc:creator>
		<pubDate>Sun, 07 Dec 2008 07:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ridaalbarazi.com/blog/2008/11/04/simplysearchable-plugin/#comment-107910</guid>
		<description>@Shuaib, SimplySearchable uses named_scope convention to apply conditions which by default uses AND as junction. I see your valid request, I'll do some research and see what will be the best way to do it and eventually launch it as a new feature.</description>
		<content:encoded><![CDATA[<p>@Shuaib, SimplySearchable uses named_scope convention to apply conditions which by default uses AND as junction. I see your valid request, I&#8217;ll do some research and see what will be the best way to do it and eventually launch it as a new feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shuaib Zahda</title>
		<link>http://rida.me/blog/2008/11/05/simplysearchable-plugin/comment-page-1/#comment-107907</link>
		<dc:creator>Shuaib Zahda</dc:creator>
		<pubDate>Sun, 07 Dec 2008 06:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ridaalbarazi.com/blog/2008/11/04/simplysearchable-plugin/#comment-107907</guid>
		<description>Thanks for the plugin. I wanted to use it but I found it does not support OR, AND. eg I want to search the word in several columns in the table and if there is a match it shall return the row

post.title LIKE ?  &#124;&#124; post.body &#124;&#124; etc....
when I implemented it, I found it does search in the specified field using AND. Do u have a choice of using OR

Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for the plugin. I wanted to use it but I found it does not support OR, AND. eg I want to search the word in several columns in the table and if there is a match it shall return the row</p>
<p>post.title LIKE ?  || post.body || etc&#8230;.<br />
when I implemented it, I found it does search in the specified field using AND. Do u have a choice of using OR</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rida</title>
		<link>http://rida.me/blog/2008/11/05/simplysearchable-plugin/comment-page-1/#comment-103937</link>
		<dc:creator>Rida</dc:creator>
		<pubDate>Wed, 19 Nov 2008 07:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.ridaalbarazi.com/blog/2008/11/04/simplysearchable-plugin/#comment-103937</guid>
		<description>@mike thanks for the patch dude.. it's already &lt;a href="http://github.com/rbarazi/simply_searchable/commit/0dda70e7a9221057ce60b6c6799c2c0966c6c283" rel="nofollow"&gt;live&lt;/a&gt; ;)</description>
		<content:encoded><![CDATA[<p>@mike thanks for the patch dude.. it&#8217;s already <a href="http://github.com/rbarazi/simply_searchable/commit/0dda70e7a9221057ce60b6c6799c2c0966c6c283" rel="nofollow">live</a> ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike grassotti</title>
		<link>http://rida.me/blog/2008/11/05/simplysearchable-plugin/comment-page-1/#comment-103934</link>
		<dc:creator>mike grassotti</dc:creator>
		<pubDate>Wed, 19 Nov 2008 07:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ridaalbarazi.com/blog/2008/11/04/simplysearchable-plugin/#comment-103934</guid>
		<description>Nice plugin. Just checking it out and noticed that you've hard-coded Post class in the list method. This will work for your example (and unit tests) but fails when used on other active record models. I made the following modification and so far so good....
&lt;code&gt;
#76: return Post.with_pagination ? listings.paginate(:page =&gt; options[:page], :per_page =&gt; options[:per_page]) : listings.all

&gt;&gt;&gt;&gt;&gt;&gt;

#76: return self.with_pagination ? listings.paginate(:page =&gt; options[:page], :per_page =&gt; options[:per_page]) : listings.all
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Nice plugin. Just checking it out and noticed that you&#8217;ve hard-coded Post class in the list method. This will work for your example (and unit tests) but fails when used on other active record models. I made the following modification and so far so good&#8230;.<br />
<code><br />
#76: return Post.with_pagination ? listings.paginate(:page =&gt; options[:page], :per_page =&gt; options[:per_page]) : listings.all</p>
<p>&gt;&gt;&gt;&gt;&gt;&gt;</p>
<p>#76: return self.with_pagination ? listings.paginate(:page =&gt; options[:page], :per_page =&gt; options[:per_page]) : listings.all<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: เร็วส์ หกสิบหก » นั่งเทียนเขียนข่าว#27</title>
		<link>http://rida.me/blog/2008/11/05/simplysearchable-plugin/comment-page-1/#comment-103171</link>
		<dc:creator>เร็วส์ หกสิบหก » นั่งเทียนเขียนข่าว#27</dc:creator>
		<pubDate>Sun, 16 Nov 2008 09:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.ridaalbarazi.com/blog/2008/11/04/simplysearchable-plugin/#comment-103171</guid>
		<description>[...] SimplySearchable Plugin [...]</description>
		<content:encoded><![CDATA[<p>[...] SimplySearchable Plugin [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rida</title>
		<link>http://rida.me/blog/2008/11/05/simplysearchable-plugin/comment-page-1/#comment-102815</link>
		<dc:creator>Rida</dc:creator>
		<pubDate>Thu, 13 Nov 2008 13:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.ridaalbarazi.com/blog/2008/11/04/simplysearchable-plugin/#comment-102815</guid>
		<description>@Dawyne, in SimplySearchable the where_* methods are actually named scopes while the by_* methods in RoR are regular methods. the other difference is that the where_* methods apply conditions depending on the column type so for strings and descriptions it uses 'like' instead of '='.

The main advantage of using named_scopes is the ability to use it several times on the same object like: Post.where_name("test").where_id(1) which is not the case in by_* methods of RoR.</description>
		<content:encoded><![CDATA[<p>@Dawyne, in SimplySearchable the where_* methods are actually named scopes while the by_* methods in RoR are regular methods. the other difference is that the where_* methods apply conditions depending on the column type so for strings and descriptions it uses &#8216;like&#8217; instead of &#8216;=&#8217;.</p>
<p>The main advantage of using named_scopes is the ability to use it several times on the same object like: Post.where_name(&#8221;test&#8221;).where_id(1) which is not the case in by_* methods of RoR.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dwayne</title>
		<link>http://rida.me/blog/2008/11/05/simplysearchable-plugin/comment-page-1/#comment-102814</link>
		<dc:creator>Dwayne</dc:creator>
		<pubDate>Thu, 13 Nov 2008 13:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.ridaalbarazi.com/blog/2008/11/04/simplysearchable-plugin/#comment-102814</guid>
		<description>I like the list method added. 

What's the difference between _where_name and _by_name, already implemented in RoR. ?</description>
		<content:encoded><![CDATA[<p>I like the list method added. </p>
<p>What&#8217;s the difference between _where_name and _by_name, already implemented in RoR. ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Double Shot #329 &#171; A Fresh Cup</title>
		<link>http://rida.me/blog/2008/11/05/simplysearchable-plugin/comment-page-1/#comment-102638</link>
		<dc:creator>Double Shot #329 &#171; A Fresh Cup</dc:creator>
		<pubDate>Mon, 10 Nov 2008 10:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ridaalbarazi.com/blog/2008/11/04/simplysearchable-plugin/#comment-102638</guid>
		<description>[...] SimplySearchable plugin - A new take on automatically building some useful named scopes. [...]</description>
		<content:encoded><![CDATA[<p>[...] SimplySearchable plugin - A new take on automatically building some useful named scopes. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

