<?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: Full Text Search on Heroku</title>
	<atom:link href="http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/feed/" rel="self" type="application/rss+xml" />
	<link>http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/</link>
	<description>The act of making love, tenderly.</description>
	<lastBuildDate>Thu, 04 Mar 2010 14:03:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sausheong</title>
		<link>http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/comment-page-1/#comment-110821</link>
		<dc:creator>sausheong</dc:creator>
		<pubDate>Sat, 27 Feb 2010 13:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=369#comment-110821</guid>
		<description>Nice! I was wondering if this works with something other than ActiveRecord, for example does it work with DataMapper?</description>
		<content:encoded><![CDATA[<p>Nice! I was wondering if this works with something other than ActiveRecord, for example does it work with DataMapper?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William</title>
		<link>http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/comment-page-1/#comment-109806</link>
		<dc:creator>William</dc:creator>
		<pubDate>Wed, 10 Feb 2010 09:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=369#comment-109806</guid>
		<description>I get the same error as &quot;dud3&quot; above, but with the model name &quot;Address&quot; instead of what I assume is &quot;Business&quot;. It seems there&#039;s something that doesn&#039;t like class names that end in two &quot;s&quot;es. 

I get:
rake aborted!
uninitialized constant Addres

Any ideas?</description>
		<content:encoded><![CDATA[<p>I get the same error as &#8220;dud3&#8243; above, but with the model name &#8220;Address&#8221; instead of what I assume is &#8220;Business&#8221;. It seems there&#8217;s something that doesn&#8217;t like class names that end in two &#8220;s&#8221;es. </p>
<p>I get:<br />
rake aborted!<br />
uninitialized constant Addres</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mtraven</title>
		<link>http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/comment-page-1/#comment-109677</link>
		<dc:creator>mtraven</dc:creator>
		<pubDate>Sun, 07 Feb 2010 17:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=369#comment-109677</guid>
		<description>I&#039;m having my own problem:  the migration generates but doesn&#039;t run successfully:

mt@laptop /misc/sourceforge/oscurrency$ heroku rake db:migrate
rake aborted!
PGError: ERROR:  invalid input syntax for integer: &quot;&quot;:
                 CREATE index communications_fts_idx
        ON communications
        USING gin((to_tsvector(&#039;english&#039;, coalesce(communications.subject, &#039;&#039;) &#124;&#124; &#039; &#039; &#124;&#124; coalesce(communications.content, &#039;&#039;) &#124;&#124; &#039; &#039; &#124;&#124; coalesce(communications.recipient_id, &#039;&#039;))))

Hm, it this is for a class that is not indexed.  It looks like another problem in the rake task.  Deleting the code for this class fixed the problem.</description>
		<content:encoded><![CDATA[<p>I&#8217;m having my own problem:  the migration generates but doesn&#8217;t run successfully:</p>
<p>mt@laptop /misc/sourceforge/oscurrency$ heroku rake db:migrate<br />
rake aborted!<br />
PGError: ERROR:  invalid input syntax for integer: &#8220;&#8221;:<br />
                 CREATE index communications_fts_idx<br />
        ON communications<br />
        USING gin((to_tsvector(&#8216;english&#8217;, coalesce(communications.subject, &#8221;) || &#8216; &#8216; || coalesce(communications.content, &#8221;) || &#8216; &#8216; || coalesce(communications.recipient_id, &#8221;))))</p>
<p>Hm, it this is for a class that is not indexed.  It looks like another problem in the rake task.  Deleting the code for this class fixed the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mtraven</title>
		<link>http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/comment-page-1/#comment-109638</link>
		<dc:creator>mtraven</dc:creator>
		<pubDate>Sun, 07 Feb 2010 04:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=369#comment-109638</guid>
		<description>dud3 and aaron:

The fix for your problem is to change the tasks.rb file in the gem so that pluralize is called before classify, ie:
       klass = File.basename(f, &#039;.rb&#039;).pluralize.classify.constantize</description>
		<content:encoded><![CDATA[<p>dud3 and aaron:</p>
<p>The fix for your problem is to change the tasks.rb file in the gem so that pluralize is called before classify, ie:<br />
       klass = File.basename(f, &#8216;.rb&#8217;).pluralize.classify.constantize</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dud3</title>
		<link>http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/comment-page-1/#comment-109531</link>
		<dc:creator>dud3</dc:creator>
		<pubDate>Sat, 06 Feb 2010 03:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=369#comment-109531</guid>
		<description>How do you search nested objects?

example, products has many deals.

I want to return products if deals matches the search.</description>
		<content:encoded><![CDATA[<p>How do you search nested objects?</p>
<p>example, products has many deals.</p>
<p>I want to return products if deals matches the search.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to convert from MySQL to Postgres &#171; Yangtheman</title>
		<link>http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/comment-page-1/#comment-108865</link>
		<dc:creator>How to convert from MySQL to Postgres &#171; Yangtheman</dc:creator>
		<pubDate>Sat, 30 Jan 2010 07:53:08 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=369#comment-108865</guid>
		<description>[...] full-text search and since Heroku uses Postgres, I could use other plug-ins like acts_as_tsearch or texticle for free. Free is important to me, since it&#8217;s not making any [...]</description>
		<content:encoded><![CDATA[<p>[...] full-text search and since Heroku uses Postgres, I could use other plug-ins like acts_as_tsearch or texticle for free. Free is important to me, since it&#8217;s not making any [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yang</title>
		<link>http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/comment-page-1/#comment-108393</link>
		<dc:creator>Yang</dc:creator>
		<pubDate>Fri, 22 Jan 2010 23:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=369#comment-108393</guid>
		<description>I am pretty new to Postgres, but this is driving me nuts.

Everything works on console, but it&#039;s not working at all in rails app. I tried to use some bogus query string I know will return empty list. On console, it works fine, but in rails app, it returns results from previous query....  What could be different from console and rails app????</description>
		<content:encoded><![CDATA[<p>I am pretty new to Postgres, but this is driving me nuts.</p>
<p>Everything works on console, but it&#8217;s not working at all in rails app. I tried to use some bogus query string I know will return empty list. On console, it works fine, but in rails app, it returns results from previous query&#8230;.  What could be different from console and rails app????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yang</title>
		<link>http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/comment-page-1/#comment-108385</link>
		<dc:creator>Yang</dc:creator>
		<pubDate>Fri, 22 Jan 2010 21:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=369#comment-108385</guid>
		<description>Hi, great tutorial!  I almost got it to work except one part. 

I can search for a query on console prompt just fine, but in rails app, it gives an error. 

def search
    @query = params[:query]
    @posts = Post.search(@query)
    @total_hits = @posts.size
end

When search is performed, I get the following error.

  SQL (0.0ms)   PGError: ERROR: syntax error at or near &quot;as&quot;
LINE 2: plainto_tsquery(E&#039;google&#039;)) as rank) AS count_po...
 ^
: SELECT count(posts.*, ts_rank_cd((to_tsvector(&#039;english&#039;, coalesce(posts.title, &#039;&#039;) &#124;&#124; &#039; &#039; &#124;&#124; coalesce(posts.content, &#039;&#039;))),
 plainto_tsquery(E&#039;google&#039;)) as rank) AS count_posts_all_ts_rank_cd_to_tsvector_english_coalesce_posts_t FROM &quot;posts&quot; WHERE (to_tsvector(&#039;english&#039;, coalesce(posts.title, &#039;&#039;) &#124;&#124; &#039; &#039; &#124;&#124; coalesce(posts.content, &#039;&#039;)) @@ plainto_tsquery(E&#039;google&#039;)) 

ActiveRecord::StatementInvalid (PGError: ERROR:  syntax error at or near &quot;as&quot;
LINE 2:             plainto_tsquery(E&#039;google&#039;)) as rank) AS count_po...
                                                ^
: SELECT count(posts.*, ts_rank_cd((to_tsvector(&#039;english&#039;, coalesce(posts.title, &#039;&#039;) &#124;&#124; &#039; &#039; &#124;&#124; coalesce(posts.content, &#039;&#039;))),
            plainto_tsquery(E&#039;google&#039;)) as rank) AS count_posts_all_ts_rank_cd_to_tsvector_english_coalesce_posts_t FROM &quot;posts&quot; WHERE (to_tsvector(&#039;english&#039;, coalesce(posts.title, &#039;&#039;) &#124;&#124; &#039; &#039; &#124;&#124; coalesce(posts.content, &#039;&#039;)) @@ plainto_tsquery(E&#039;google&#039;)) ):
  (__DELEGATION__):2:in `__send__&#039;
  (__DELEGATION__):2:in `with_scope&#039;
  app/controllers/posts_controller.rb:146:in `search&#039;

Any clues? Also, how would you incorporate paginate into search results?

Thank you in advance.</description>
		<content:encoded><![CDATA[<p>Hi, great tutorial!  I almost got it to work except one part. </p>
<p>I can search for a query on console prompt just fine, but in rails app, it gives an error. </p>
<p>def search<br />
    @query = params[:query]<br />
    @posts = Post.search(@query)<br />
    @total_hits = @posts.size<br />
end</p>
<p>When search is performed, I get the following error.</p>
<p>  SQL (0.0ms)   PGError: ERROR: syntax error at or near &#8220;as&#8221;<br />
LINE 2: plainto_tsquery(E&#8217;google&#8217;)) as rank) AS count_po&#8230;<br />
 ^<br />
: SELECT count(posts.*, ts_rank_cd((to_tsvector(&#8216;english&#8217;, coalesce(posts.title, &#8221;) || &#8216; &#8216; || coalesce(posts.content, &#8221;))),<br />
 plainto_tsquery(E&#8217;google&#8217;)) as rank) AS count_posts_all_ts_rank_cd_to_tsvector_english_coalesce_posts_t FROM &#8220;posts&#8221; WHERE (to_tsvector(&#8216;english&#8217;, coalesce(posts.title, &#8221;) || &#8216; &#8216; || coalesce(posts.content, &#8221;)) @@ plainto_tsquery(E&#8217;google&#8217;)) </p>
<p>ActiveRecord::StatementInvalid (PGError: ERROR:  syntax error at or near &#8220;as&#8221;<br />
LINE 2:             plainto_tsquery(E&#8217;google&#8217;)) as rank) AS count_po&#8230;<br />
                                                ^<br />
: SELECT count(posts.*, ts_rank_cd((to_tsvector(&#8216;english&#8217;, coalesce(posts.title, &#8221;) || &#8216; &#8216; || coalesce(posts.content, &#8221;))),<br />
            plainto_tsquery(E&#8217;google&#8217;)) as rank) AS count_posts_all_ts_rank_cd_to_tsvector_english_coalesce_posts_t FROM &#8220;posts&#8221; WHERE (to_tsvector(&#8216;english&#8217;, coalesce(posts.title, &#8221;) || &#8216; &#8216; || coalesce(posts.content, &#8221;)) @@ plainto_tsquery(E&#8217;google&#8217;)) ):<br />
  (__DELEGATION__):2:in `__send__&#8217;<br />
  (__DELEGATION__):2:in `with_scope&#8217;<br />
  app/controllers/posts_controller.rb:146:in `search&#8217;</p>
<p>Any clues? Also, how would you incorporate paginate into search results?</p>
<p>Thank you in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dud3</title>
		<link>http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/comment-page-1/#comment-108216</link>
		<dc:creator>dud3</dc:creator>
		<pubDate>Wed, 20 Jan 2010 03:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=369#comment-108216</guid>
		<description>I get an error when i try to run rake texticle:migration

~/rails/business$ rake texticle:migration --trace
(in /home/dude/rails/business)
** Invoke texticle:migration (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute texticle:migration
rake aborted!
uninitialized constant Busines
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant&#039;
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing&#039;
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in `const_missing&#039;
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:361:in `constantize&#039;
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in `each&#039;
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in `constantize&#039;
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/inflections.rb:162:in `constantize&#039;
/usr/local/lib/ruby/gems/1.8/gems/texticle-1.0.2/lib/texticle/tasks.rb:13
/usr/local/lib/ruby/gems/1.8/gems/texticle-1.0.2/lib/texticle/tasks.rb:12:in `each&#039;
/usr/local/lib/ruby/gems/1.8/gems/texticle-1.0.2/lib/texticle/tasks.rb:12
/usr/local/lib/ruby/gems/1.8/gems/texticle-1.0.2/lib/texticle/tasks.rb:9:in `open&#039;
/usr/local/lib/ruby/gems/1.8/gems/texticle-1.0.2/lib/texticle/tasks.rb:9
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain&#039;
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run&#039;
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/local/bin/rake:19:in `load&#039;
/usr/local/bin/rake:19</description>
		<content:encoded><![CDATA[<p>I get an error when i try to run rake texticle:migration</p>
<p>~/rails/business$ rake texticle:migration &#8211;trace<br />
(in /home/dude/rails/business)<br />
** Invoke texticle:migration (first_time)<br />
** Invoke environment (first_time)<br />
** Execute environment<br />
** Execute texticle:migration<br />
rake aborted!<br />
uninitialized constant Busines<br />
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in `const_missing&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:361:in `constantize&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in `each&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in `constantize&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/inflections.rb:162:in `constantize&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/texticle-1.0.2/lib/texticle/tasks.rb:13<br />
/usr/local/lib/ruby/gems/1.8/gems/texticle-1.0.2/lib/texticle/tasks.rb:12:in `each&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/texticle-1.0.2/lib/texticle/tasks.rb:12<br />
/usr/local/lib/ruby/gems/1.8/gems/texticle-1.0.2/lib/texticle/tasks.rb:9:in `open&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/texticle-1.0.2/lib/texticle/tasks.rb:9<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain&#8217;<br />
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run&#8217;<br />
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31<br />
/usr/local/bin/rake:19:in `load&#8217;<br />
/usr/local/bin/rake:19</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Roberts</title>
		<link>http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/comment-page-1/#comment-107764</link>
		<dc:creator>Glenn Roberts</dc:creator>
		<pubDate>Tue, 12 Jan 2010 09:13:37 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=369#comment-107764</guid>
		<description>Bloody great article - just spent the last few hours looking for exactly this. You&#039;re a champion.

Love the mullet gravatar on github - lol.</description>
		<content:encoded><![CDATA[<p>Bloody great article &#8211; just spent the last few hours looking for exactly this. You&#8217;re a champion.</p>
<p>Love the mullet gravatar on github &#8211; lol.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
