The way I usually handle updates like this is to store the filename in the index as a different field in the document. You can then search the index for that filename, get the index for that entry, and update accordingly.<br>
<br><div><span class="gmail_quote">On 6/15/06, <b class="gmail_sendername">steven</b> &lt;<a href="mailto:shingler@gmail.com">shingler@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br><br>I have a Ferret index containing some cached RSS feeds.<br><br>I have a nightly cron script to cache the feeds, and I'd like to update<br>the index with the latest feeds.<br><br>I see the Index class has an update method, but I can't work out how to
<br>get the id of the relevant document to pass in.<br><br>Lets say I have a file called &quot;google_news.xml&quot;<br><br>I want to go:<br>&nbsp;&nbsp;&nbsp;&nbsp;my_index.update(google_id, google_doc)<br><br>I'm sure this is way too easy and I'm being massively dumb, but - - any
<br>hints/advice gratefully received.<br><br>Many Thanks,<br>Steven<br><br>--<br>Posted via <a href="http://www.ruby-forum.com/">http://www.ruby-forum.com/</a>.<br>_______________________________________________<br>Ferret-talk mailing list
<br><a href="mailto:Ferret-talk@rubyforge.org">Ferret-talk@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/ferret-talk">http://rubyforge.org/mailman/listinfo/ferret-talk</a><br></blockquote></div><br>