<?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: Searchlogic 1.3.0 &#8211; Adding modifiers into the mix</title>
	<atom:link href="http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/</link>
	<description>Ben Johnson's thoughts and programming techniques</description>
	<lastBuildDate>Tue, 26 Jan 2010 22:32:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Oleg</title>
		<link>http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/comment-page-1/#comment-74</link>
		<dc:creator>Oleg</dc:creator>
		<pubDate>Thu, 02 Oct 2008 12:40:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/searchlogic-1-3-0-adding-modifiers-into-the-mix#comment-74</guid>
		<description>I think it&#039;s pretty awesome.</description>
		<content:encoded><![CDATA[<p>I think it&#8217;s pretty awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pete</title>
		<link>http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/comment-page-1/#comment-75</link>
		<dc:creator>pete</dc:creator>
		<pubDate>Thu, 02 Oct 2008 12:40:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/searchlogic-1-3-0-adding-modifiers-into-the-mix#comment-75</guid>
		<description>I think you have too much time on your hands.

Good work! You&#039;re releasing faster than I can include your releases in my projects!</description>
		<content:encoded><![CDATA[<p>I think you have too much time on your hands.</p>
<p>Good work! You&#8217;re releasing faster than I can include your releases in my projects!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/comment-page-1/#comment-76</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Thu, 02 Oct 2008 12:40:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/searchlogic-1-3-0-adding-modifiers-into-the-mix#comment-76</guid>
		<description>Consider my face melted!</description>
		<content:encoded><![CDATA[<p>Consider my face melted!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: faust45</title>
		<link>http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/comment-page-1/#comment-77</link>
		<dc:creator>faust45</dc:creator>
		<pubDate>Thu, 02 Oct 2008 12:40:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/searchlogic-1-3-0-adding-modifiers-into-the-mix#comment-77</guid>
		<description>What about
find(:order_by =&gt; :coalesce_short_title) =&gt;
   SELECT *
   FROM Table
   ORDER BY COALESCE(short, title)</description>
		<content:encoded><![CDATA[<p>What about<br />
find(:order_by =&gt; :coalesce_short_title) =&gt;<br />
   SELECT *<br />
   FROM Table<br />
   ORDER BY COALESCE(short, title)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/comment-page-1/#comment-78</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Thu, 02 Oct 2008 12:40:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/searchlogic-1-3-0-adding-modifiers-into-the-mix#comment-78</guid>
		<description>What version of rails is required, 1.6, 2.0 2.1?</description>
		<content:encoded><![CDATA[<p>What version of rails is required, 1.6, 2.0 2.1?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/comment-page-1/#comment-79</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Thu, 02 Oct 2008 12:40:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/searchlogic-1-3-0-adding-modifiers-into-the-mix#comment-79</guid>
		<description>Rails really isn&#039;t technically required, just ActiveRecord and ActiveSupport. But I am fairly certain you could use this with 1.6 as it doesn&#039;t using anything internal really.

Also, I will look into coalesce. When I built in the modifiers I just scanned through a list of common MySQL functions. 90% of my modifiers probably will never be used, they were so easy to add though, so why not. Plus I could add a million and it wouldn&#039;t effect performance.</description>
		<content:encoded><![CDATA[<p>Rails really isn&#8217;t technically required, just ActiveRecord and ActiveSupport. But I am fairly certain you could use this with 1.6 as it doesn&#8217;t using anything internal really.</p>
<p>Also, I will look into coalesce. When I built in the modifiers I just scanned through a list of common MySQL functions. 90% of my modifiers probably will never be used, they were so easy to add though, so why not. Plus I could add a million and it wouldn&#8217;t effect performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: faust45</title>
		<link>http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/comment-page-1/#comment-80</link>
		<dc:creator>faust45</dc:creator>
		<pubDate>Thu, 02 Oct 2008 12:40:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/searchlogic-1-3-0-adding-modifiers-into-the-mix#comment-80</guid>
		<description>I don&#039;t found way to add modifiers in ORDER BY statement.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t found way to add modifiers in ORDER BY statement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/comment-page-1/#comment-81</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Thu, 02 Oct 2008 12:40:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/searchlogic-1-3-0-adding-modifiers-into-the-mix#comment-81</guid>
		<description>As of now modifiers are not supported in the order by function. This is something that will be supported in the next version. I will more than likely have to  rework that function, as initially it was just a simple function.</description>
		<content:encoded><![CDATA[<p>As of now modifiers are not supported in the order by function. This is something that will be supported in the next version. I will more than likely have to  rework that function, as initially it was just a simple function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mathieu</title>
		<link>http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/comment-page-1/#comment-82</link>
		<dc:creator>mathieu</dc:creator>
		<pubDate>Thu, 02 Oct 2008 12:40:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/searchlogic-1-3-0-adding-modifiers-into-the-mix#comment-82</guid>
		<description>Great work Ben,

Have you some guidelines to add oracle support for modifiers.

Tried to put :

&lt;code&gt;
module Searchgasm
  module ActiveRecord
    module ConnectionAdapters
      module SQLiteAdapter
        # String functions
        def upper_sql(column_name)
          &quot;upper(#{column_name})&quot;
        end
      end
    end
  end
end

::ActiveRecord::ConnectionAdapters::OracleAdapter.send(:include, Searchgasm::ActiveRecord::ConnectionAdapters::OracleAdapter)
&lt;/code&gt;

into
\vendor\plugins\searchgasm-1.4.2\lib\searchgasm\active_record\connection_adapters\oracle_adapter.rb

nothing altered in the query.

Gretz</description>
		<content:encoded><![CDATA[<p>Great work Ben,</p>
<p>Have you some guidelines to add oracle support for modifiers.</p>
<p>Tried to put :</p>
<p>&lt;code&gt;<br />
module Searchgasm<br />
  module ActiveRecord<br />
    module ConnectionAdapters<br />
      module SQLiteAdapter<br />
        # String functions<br />
        def upper_sql(column_name)<br />
          &quot;upper(#{column_name})&quot;<br />
        end<br />
      end<br />
    end<br />
  end<br />
end</p>
<p>::ActiveRecord::ConnectionAdapters::OracleAdapter.send(:include, Searchgasm::ActiveRecord::ConnectionAdapters::OracleAdapter)<br />
&lt;/code&gt;</p>
<p>into<br />
\vendor\plugins\searchgasm-1.4.2\lib\searchgasm\active_record\connection_adapters\oracle_adapter.rb</p>
<p>nothing altered in the query.</p>
<p>Gretz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mathieu</title>
		<link>http://www.binarylogic.com/2008/10/02/searchlogic-1-3-0-adding-modifiers-into-the-mix/comment-page-1/#comment-83</link>
		<dc:creator>mathieu</dc:creator>
		<pubDate>Thu, 02 Oct 2008 12:40:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/searchlogic-1-3-0-adding-modifiers-into-the-mix#comment-83</guid>
		<description>Ben drop my previous comment.. code is wrong...

Great work Ben.

I&#039;m trying to add Oracle support with modifiers

Created :

\vendor\plugins\searchgasm-1.4.2\lib\searchgasm\active_record\connection_adapters\oracle_adapter.rb

with :
--
module Searchgasm
  module ActiveRecord
    module ConnectionAdapters
      module OracleAdapter
        # String functions
        def upper_sql(column_name)
          &quot;upper(#{column_name})&quot;
        end
      end
    end
  end
end

::ActiveRecord::ConnectionAdapters::OracleAdapter.send(:include, Searchgasm::ActiveRecord::ConnectionAdapters::OracleAdapter)

--

&quot;search&quot;=&gt;{&quot;conditions&quot;=&gt;&quot;upper_of_libelle_marche_contains&quot;=&gt;&quot;mi&quot;,....}

SQL : ... AND (marche_supreme.libelle_marche LIKE &#039;%mi%&#039;)

Not really that!

Thanks</description>
		<content:encoded><![CDATA[<p>Ben drop my previous comment.. code is wrong&#8230;</p>
<p>Great work Ben.</p>
<p>I&#8217;m trying to add Oracle support with modifiers</p>
<p>Created :</p>
<p>\vendor\plugins\searchgasm-1.4.2\lib\searchgasm\active_record\connection_adapters\oracle_adapter.rb</p>
<p>with :<br />
&#8211;<br />
module Searchgasm<br />
  module ActiveRecord<br />
    module ConnectionAdapters<br />
      module OracleAdapter<br />
        # String functions<br />
        def upper_sql(column_name)<br />
          &quot;upper(#{column_name})&quot;<br />
        end<br />
      end<br />
    end<br />
  end<br />
end</p>
<p>::ActiveRecord::ConnectionAdapters::OracleAdapter.send(:include, Searchgasm::ActiveRecord::ConnectionAdapters::OracleAdapter)</p>
<p>&#8211;</p>
<p>&quot;search&quot;=&gt;{&quot;conditions&quot;=&gt;&quot;upper_of_libelle_marche_contains&quot;=&gt;&quot;mi&quot;,&#8230;.}</p>
<p>SQL : &#8230; AND (marche_supreme.libelle_marche LIKE &#8216;%mi%&#8217;)</p>
<p>Not really that!</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
