<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Reindexing a single object using Django &amp; Haystack</title>
	<atom:link href="http://slacy.com/blog/2009/11/reindexing-a-single-object-using-django-haystack/feed/" rel="self" type="application/rss+xml" />
	<link>http://slacy.com/blog/2009/11/reindexing-a-single-object-using-django-haystack/</link>
	<description>This site is solar powered!</description>
	<lastBuildDate>Sat, 19 May 2012 03:18:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: slacy</title>
		<link>http://slacy.com/blog/2009/11/reindexing-a-single-object-using-django-haystack/comment-page-1/#comment-17884</link>
		<dc:creator>slacy</dc:creator>
		<pubDate>Thu, 19 Nov 2009 16:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/?p=1006#comment-17884</guid>
		<description>Yeah, I know that saving the model will also update the index, I should have mentioned that my model has something akin to &quot;last_modified=DateTimeField(auto_now=True)&quot;.  So, I don&#039;t want to call save() on the model, because it would result in updating of the last_modified time, which is incorrect.

Oh, and I&#039;m not sure I buy your argument about &quot;site&quot;.  You have to remember that &quot;http://localhost:8000/admin&quot; is actually a &quot;site&quot;.  It includes models, views, etc.  With Haystack, on the other hand, I like the symmetry with the admin interface, but I don&#039;t think of it as it&#039;s own &quot;site&quot;.  It&#039;s much more like a reusable app.  I&#039;d still prefer if it were called something like &quot;engine&quot;.  Just because you&#039;re modeling on the admin API doesn&#039;t mean you can&#039;t make some other changes here and there when they make sense. 

BTW, If SearhcIndex is becoming RealTimeSearchIndex, does that mean that there&#039;s a Non-realtime search index as well?  What&#039;s the difference?   I guess I should just read the source. :)</description>
		<content:encoded><![CDATA[<p>Yeah, I know that saving the model will also update the index, I should have mentioned that my model has something akin to &#8220;last_modified=DateTimeField(auto_now=True)&#8221;.  So, I don&#8217;t want to call save() on the model, because it would result in updating of the last_modified time, which is incorrect.</p>
<p>Oh, and I&#8217;m not sure I buy your argument about &#8220;site&#8221;.  You have to remember that &#8220;http://localhost:8000/admin&#8221; is actually a &#8220;site&#8221;.  It includes models, views, etc.  With Haystack, on the other hand, I like the symmetry with the admin interface, but I don&#8217;t think of it as it&#8217;s own &#8220;site&#8221;.  It&#8217;s much more like a reusable app.  I&#8217;d still prefer if it were called something like &#8220;engine&#8221;.  Just because you&#8217;re modeling on the admin API doesn&#8217;t mean you can&#8217;t make some other changes here and there when they make sense. </p>
<p>BTW, If SearhcIndex is becoming RealTimeSearchIndex, does that mean that there&#8217;s a Non-realtime search index as well?  What&#8217;s the difference?   I guess I should just read the source. <img src='http://slacy.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Lindsley</title>
		<link>http://slacy.com/blog/2009/11/reindexing-a-single-object-using-django-haystack/comment-page-1/#comment-17883</link>
		<dc:creator>Daniel Lindsley</dc:creator>
		<pubDate>Thu, 19 Nov 2009 03:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/?p=1006#comment-17883</guid>
		<description>If you&#039;re using the standard ``SearchIndex`` (soon to become ``RealTimeSearchIndex``), just saving the model in question will update the document in the index. If not, your code is correct.

As for ``site``, it really refers to a customized registry of models available for the site it serves. It was also chosen because it was consistent with ``admin.site.register(Model, ModelAdmin)``, so that most users would find it more familiar. And care was taken to namespace to the ``haystack`` module to prevent collisions with other objects.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re using the standard &#8220;SearchIndex&#8220; (soon to become &#8220;RealTimeSearchIndex&#8220;), just saving the model in question will update the document in the index. If not, your code is correct.</p>
<p>As for &#8220;site&#8220;, it really refers to a customized registry of models available for the site it serves. It was also chosen because it was consistent with &#8220;admin.site.register(Model, ModelAdmin)&#8220;, so that most users would find it more familiar. And care was taken to namespace to the &#8220;haystack&#8220; module to prevent collisions with other objects.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

