<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: ThinkingSphinx Rails plugin fork</title>
	<link>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/</link>
	<description>computers, music, what am i missing?</description>
	<pubDate>Sat, 31 Jul 2010 05:14:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Ed</title>
		<link>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-7557</link>
		<author>Ed</author>
		<pubDate>Sat, 12 Dec 2009 17:02:13 +0000</pubDate>
		<guid>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-7557</guid>
		<description>Canvas,
I haven't updated the code but I know that the latest TS gem has rolled in the timestamp delta feature.  I'm not sure it's implemented the exact same way as I did it, but it's likely better :)  Checkout the Github page.</description>
		<content:encoded><![CDATA[<p>Canvas,<br />
I haven&#8217;t updated the code but I know that the latest TS gem has rolled in the timestamp delta feature.  I&#8217;m not sure it&#8217;s implemented the exact same way as I did it, but it&#8217;s likely better :)  Checkout the Github page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Canvas</title>
		<link>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-7553</link>
		<author>Canvas</author>
		<pubDate>Sat, 12 Dec 2009 01:21:50 +0000</pubDate>
		<guid>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-7553</guid>
		<description>Hi Ed,

I have been using your fork (version 0.9.9, rails 2.0.2, sphinx 0.9.8.1) with timestamp support in delta index. And it has been working really well. Thank you a lot for the hard work.

I am now upgrading rails to version 2.3.4, sphinx to 0.9.9 and thinking-sphinx to 1.3.9. I am wondering whether you have a similar fork for the latest thinking-sphinx.

Best wishes,

Canvas</description>
		<content:encoded><![CDATA[<p>Hi Ed,</p>
<p>I have been using your fork (version 0.9.9, rails 2.0.2, sphinx 0.9.8.1) with timestamp support in delta index. And it has been working really well. Thank you a lot for the hard work.</p>
<p>I am now upgrading rails to version 2.3.4, sphinx to 0.9.9 and thinking-sphinx to 1.3.9. I am wondering whether you have a similar fork for the latest thinking-sphinx.</p>
<p>Best wishes,</p>
<p>Canvas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-3840</link>
		<author>Ed</author>
		<pubDate>Wed, 17 Jun 2009 13:34:57 +0000</pubDate>
		<guid>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-3840</guid>
		<description>I haven't gotten that error.  That looks like something outside of ThinkingSphinx.  Can you tell me how to reproduce it?</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t gotten that error.  That looks like something outside of ThinkingSphinx.  Can you tell me how to reproduce it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: baldrailers</title>
		<link>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-3832</link>
		<author>baldrailers</author>
		<pubDate>Wed, 17 Jun 2009 09:37:46 +0000</pubDate>
		<guid>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-3832</guid>
		<description>ActionView::TemplateError (undefined method `per_page' for #)

How did you resolve this one?</description>
		<content:encoded><![CDATA[<p>ActionView::TemplateError (undefined method `per_page&#8217; for #)</p>
<p>How did you resolve this one?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1155</link>
		<author>Ed</author>
		<pubDate>Sat, 03 Jan 2009 19:09:35 +0000</pubDate>
		<guid>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1155</guid>
		<description>Canvas,
I don't know why Sphinx would be removing the deltas upon a second run of the delta rake task.  I run the same task hourly on our system and the deltas just keep getting recreated.  The deltas should only disappear after a merge action (thinking_sphinx:merge) or a complete re-index (thinking_sphinx:index).

Checkout the docs for more details on the ideas behind indexing:
http://www.sphinxsearch.com/docs/current.html#indexing</description>
		<content:encoded><![CDATA[<p>Canvas,<br />
I don&#8217;t know why Sphinx would be removing the deltas upon a second run of the delta rake task.  I run the same task hourly on our system and the deltas just keep getting recreated.  The deltas should only disappear after a merge action (thinking_sphinx:merge) or a complete re-index (thinking_sphinx:index).</p>
<p>Checkout the docs for more details on the ideas behind indexing:<br />
<a href="http://www.sphinxsearch.com/docs/current.html#indexing" rel="nofollow">http://www.sphinxsearch.com/docs/current.html#indexing</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Canvas</title>
		<link>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1150</link>
		<author>Canvas</author>
		<pubDate>Fri, 02 Jan 2009 19:08:19 +0000</pubDate>
		<guid>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1150</guid>
		<description>Hi Ed,

To walk around the delta index problem, I am trying to modify thinking_sphinx_tasks.rb by 
adding function call "ts_merge(...)" into rake task 
"thinking_sphinx:index:delta". But I am not sure whether this is the right approach or not. 

One more question, should I just run "rake Shingking_sphinx:index" once when the 
searchd is started and schedule "rake thingking_sphinx:index:delta" and "rake thingking_sphinx:index:merge" in background daemons to run repeatedly? 

Thanks in advance. Any suggestion is appreciated.

Cheers</description>
		<content:encoded><![CDATA[<p>Hi Ed,</p>
<p>To walk around the delta index problem, I am trying to modify thinking_sphinx_tasks.rb by<br />
adding function call &#8220;ts_merge(&#8230;)&#8221; into rake task<br />
&#8220;thinking_sphinx:index:delta&#8221;. But I am not sure whether this is the right approach or not. </p>
<p>One more question, should I just run &#8220;rake Shingking_sphinx:index&#8221; once when the<br />
searchd is started and schedule &#8220;rake thingking_sphinx:index:delta&#8221; and &#8220;rake thingking_sphinx:index:merge&#8221; in background daemons to run repeatedly? </p>
<p>Thanks in advance. Any suggestion is appreciated.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Canvas</title>
		<link>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1133</link>
		<author>Canvas</author>
		<pubDate>Wed, 31 Dec 2008 01:37:14 +0000</pubDate>
		<guid>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1133</guid>
		<description>Hi there Ed,

Thank you very much for your information. I tried daemon gem, it works fine.

In the daemon I run "rake thinking_sphinx:index:delta" every 10 seconds. And I then ran into another interesting problem. The delta index built on the first call of "rake thinking_sphinx:index:delta" will be gone if the rake command is called a second time after some time interval. I tried it manually and got the same result. If the rake command can not be called repeatedly, what's the point of having it? What else do I have to do besides calling the rake command in the Daemon to make it right?

This problem really conflicts with the delta index concept in my mind. I thought the delta index keeps accumulating when "rake thinking_sphinx:index:delta" is repeatedly called untill a "rake thingking_sphinx:index" or "rake thinking_sphinx:index:merge" is called.

One more question, do "rake thingking_sphinx:index" clear delta index? What about "rake thinking_sphinx:index:merge"?

Thanks in advance.

Cheers</description>
		<content:encoded><![CDATA[<p>Hi there Ed,</p>
<p>Thank you very much for your information. I tried daemon gem, it works fine.</p>
<p>In the daemon I run &#8220;rake thinking_sphinx:index:delta&#8221; every 10 seconds. And I then ran into another interesting problem. The delta index built on the first call of &#8220;rake thinking_sphinx:index:delta&#8221; will be gone if the rake command is called a second time after some time interval. I tried it manually and got the same result. If the rake command can not be called repeatedly, what&#8217;s the point of having it? What else do I have to do besides calling the rake command in the Daemon to make it right?</p>
<p>This problem really conflicts with the delta index concept in my mind. I thought the delta index keeps accumulating when &#8220;rake thinking_sphinx:index:delta&#8221; is repeatedly called untill a &#8220;rake thingking_sphinx:index&#8221; or &#8220;rake thinking_sphinx:index:merge&#8221; is called.</p>
<p>One more question, do &#8220;rake thingking_sphinx:index&#8221; clear delta index? What about &#8220;rake thinking_sphinx:index:merge&#8221;?</p>
<p>Thanks in advance.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1090</link>
		<author>Ed</author>
		<pubDate>Tue, 23 Dec 2008 01:15:03 +0000</pubDate>
		<guid>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1090</guid>
		<description>Canvas,
For your cron issue - there could be many reasons it's not working.  Assuming this is running under root: can you check root's email on that box?  That's where the output of all crons will go unless redirected somewhere else.  Seeing the output of the task should point you in the right direction.  The issue could be path-related.  I don't use .cron files myself - I do everything via crontab, so I'm not sure if the globals you set will work or not - but that'd be what I'd check.   As for getting it to run more than once a minute.  Cron can't do that (to my knowledge).  Furthermore, you probably don't actually want to re-index more than once a minute.  Unless you have really tiny indexes, the process will likely step on one another.  I'd benchmark the runtime of the indexing process to see.  If it only takes a couple seconds and you have to have it run every 10 seconds.  Write a daemonized script to do so.  Check out the daemon gem - has everything you'd need. 

For your second question:  The thinking_sphinx:index:all task just runs thinking_sphinx:index.  It's there just to be thorough.  thinking_sphinx:merge merges in the delta indexes into the main indexes.  According to the Sphinx docs, you should do this every once in awhile to keep up performance.  We do it once a week on our ~2GB of indexes.</description>
		<content:encoded><![CDATA[<p>Canvas,<br />
For your cron issue - there could be many reasons it&#8217;s not working.  Assuming this is running under root: can you check root&#8217;s email on that box?  That&#8217;s where the output of all crons will go unless redirected somewhere else.  Seeing the output of the task should point you in the right direction.  The issue could be path-related.  I don&#8217;t use .cron files myself - I do everything via crontab, so I&#8217;m not sure if the globals you set will work or not - but that&#8217;d be what I&#8217;d check.   As for getting it to run more than once a minute.  Cron can&#8217;t do that (to my knowledge).  Furthermore, you probably don&#8217;t actually want to re-index more than once a minute.  Unless you have really tiny indexes, the process will likely step on one another.  I&#8217;d benchmark the runtime of the indexing process to see.  If it only takes a couple seconds and you have to have it run every 10 seconds.  Write a daemonized script to do so.  Check out the daemon gem - has everything you&#8217;d need. </p>
<p>For your second question:  The thinking_sphinx:index:all task just runs thinking_sphinx:index.  It&#8217;s there just to be thorough.  thinking_sphinx:merge merges in the delta indexes into the main indexes.  According to the Sphinx docs, you should do this every once in awhile to keep up performance.  We do it once a week on our ~2GB of indexes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Canvas</title>
		<link>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1075</link>
		<author>Canvas</author>
		<pubDate>Fri, 19 Dec 2008 21:55:53 +0000</pubDate>
		<guid>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1075</guid>
		<description>Hi there Ed,

One more question, it seems to me that "rake thinking_sphinx:configure", "rake thinking_sphinx:delta", "rake thinking_sphinx:index" are enough to build index. Why do we need "rake thinking_sphinx:index:all" and "rake thinking_sphinx:merge"? When should I use them and for what purpose? Thank you very much.

Cheers
--
Canvas</description>
		<content:encoded><![CDATA[<p>Hi there Ed,</p>
<p>One more question, it seems to me that &#8220;rake thinking_sphinx:configure&#8221;, &#8220;rake thinking_sphinx:delta&#8221;, &#8220;rake thinking_sphinx:index&#8221; are enough to build index. Why do we need &#8220;rake thinking_sphinx:index:all&#8221; and &#8220;rake thinking_sphinx:merge&#8221;? When should I use them and for what purpose? Thank you very much.</p>
<p>Cheers<br />
&#8211;<br />
Canvas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Canvas</title>
		<link>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1074</link>
		<author>Canvas</author>
		<pubDate>Fri, 19 Dec 2008 21:48:07 +0000</pubDate>
		<guid>http://blog.edhickey.com/2008/09/15/thinkingsphinx-rails-plugin-fork/#comment-1074</guid>
		<description>Hi there,

I set ThinkingSphinx.offline_indexing = true in my environment.rb.

The data in my system updates quite frequently, so I plan to perform "rake thinking_sphinx:index:delta" every 10 seconds and "rake thinking_sphinx:index" every 30 minutes. But I have two problems in doing so. 

First of all, I have problem to create a cron job to run every 10 seconds. It seems that cron jobs can only be scheduled in minutes.

Secondly, do I need to do anything to trigger the cron? It seems not working. I created the cron file as "/etc/cron.d/sphinx_index.cron". And the following is the content of the cron file:

SHELL=/bin/bash
PATH=//workspace/CA/BETA_3/EconveyancePro
MAILTO=
HOME=/

# build sphinx index every 30 minutes
*/30 * * * * rake thinking_sphinx:index. 

Thank you very much in advance.

Cheers
--
Canvas</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I set ThinkingSphinx.offline_indexing = true in my environment.rb.</p>
<p>The data in my system updates quite frequently, so I plan to perform &#8220;rake thinking_sphinx:index:delta&#8221; every 10 seconds and &#8220;rake thinking_sphinx:index&#8221; every 30 minutes. But I have two problems in doing so. </p>
<p>First of all, I have problem to create a cron job to run every 10 seconds. It seems that cron jobs can only be scheduled in minutes.</p>
<p>Secondly, do I need to do anything to trigger the cron? It seems not working. I created the cron file as &#8220;/etc/cron.d/sphinx_index.cron&#8221;. And the following is the content of the cron file:</p>
<p>SHELL=/bin/bash<br />
PATH=//workspace/CA/BETA_3/EconveyancePro<br />
MAILTO=<br />
HOME=/</p>
<p># build sphinx index every 30 minutes<br />
*/30 * * * * rake thinking_sphinx:index. </p>
<p>Thank you very much in advance.</p>
<p>Cheers<br />
&#8211;<br />
Canvas</p>
]]></content:encoded>
	</item>
</channel>
</rss>
