[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] Can't search without crashing



Reformatted excerpts from Steve Goldman's message of 2009-11-01:
> I'm replacing those sources (at least I backed up the sources.yaml
> file) and will see how that goes.

If you're really done with a source, you can remove it from
sources.yaml, but you also need to remove all messages from the index.
You should be able do something like:

  $ sh devel/console.sh
  >> q = Index.parse_query "source_id:4"
  => # ...
  >> Index.each_id(q) { |id| Index.delete id }
  => nil
  >> Index.save

-- 
William <wmorgan-sup@masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk