<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wylie &#187; index</title>
	<atom:link href="http://www.wyliethomas.com/blog/tag/index/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wyliethomas.com/blog</link>
	<description>web consultant.developer.angler</description>
	<lastBuildDate>Wed, 07 Dec 2011 18:14:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reindexing Ferret Part II</title>
		<link>http://www.wyliethomas.com/blog/2008/11/25/reindexing-ferret-part-ii/</link>
		<comments>http://www.wyliethomas.com/blog/2008/11/25/reindexing-ferret-part-ii/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 22:17:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[ferret]]></category>
		<category><![CDATA[index]]></category>

		<guid isPermaLink="false">http://www.wyliethomas.com/2008/11/25/reindexing-ferret-part-ii/</guid>
		<description><![CDATA[Automating the re-indexing process was a bit different than I thought it would be.
Yesterday I posted that you can use script/console. Which is true, but you cant run that in a cronjob. Or, at least I couldnt get it to run in a cronjob.
So I learned about script/runner. I used it like this&#8230; I put [...]]]></description>
			<content:encoded><![CDATA[<p>Automating the re-indexing process was a bit different than I thought it would be.</p>
<p>Yesterday I posted that you can use script/console. Which is true, but you cant run that in a cronjob. Or, at least I couldnt get it to run in a cronjob.</p>
<p>So I learned about script/runner. I used it like this&#8230; I put a .rb script in lib/task called ferret_index.rb.</p>
<p><code>class FerretIndex &lt; ActiveRecord::Base<br />
MyModel.rebuild_index<br />
end</code></p>
<p>Then my cronjob</p>
<p><code>0 1 * * 7 /usr/local/bin/ruby /usr/local/apache2/htdocs/&lt;my project&gt;/script/runner /usr/local/apache2/&lt;my project&gt;/lib/task/ferret_index.rb</code></p>
<p>Every sunday at 1:00 am my index will be updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wyliethomas.com/blog/2008/11/25/reindexing-ferret-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reindexing Ferret</title>
		<link>http://www.wyliethomas.com/blog/2008/11/24/reindexing-ferret/</link>
		<comments>http://www.wyliethomas.com/blog/2008/11/24/reindexing-ferret/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 18:05:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[acts_as_ferret]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://www.wyliethomas.com/2008/11/24/reindexing-ferret/</guid>
		<description><![CDATA[Its really simple, wished I had seen this part of the documentation a couple months ago.
Lesson learned. As the databse was being updated more often and becoming very large, indexing became more difficult to do just by doing a search in the browser. Back to the documentation and there it was.
script/console
&#62;&#62;MyModel.rebuild_index
Plus, the indexing seems to [...]]]></description>
			<content:encoded><![CDATA[<p>Its really simple, wished I had seen this part of the documentation a couple months ago.</p>
<p>Lesson learned. As the databse was being updated more often and becoming very large, indexing became more difficult to do just by doing a search in the browser. Back to the documentation and there it was.</p>
<p>script/console</p>
<p>&gt;&gt;MyModel.rebuild_index</p>
<p>Plus, the indexing seems to be much faster. Looking into  running the DRb server. Im worried about taking a performance hit. I&#8217;ll post what I learn when I try it out</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wyliethomas.com/blog/2008/11/24/reindexing-ferret/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

