Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Jonathan Lassoff <jof@thejof.com>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] Delete A Source From Ferret Index
Date: Mon, 04 Jan 2010 18:21:34 -0800	[thread overview]
Message-ID: <1262657952-sup-6680@sfo.thejof.com> (raw)
In-Reply-To: <1262573310-sup-6062@sfo.thejof.com>

Excerpts from Jonathan Lassoff's message of Sun Jan 03 19:35:08 -0800 2010:
> Any suggestions for removing all messages from the index that belong to
> a certain source?

A solution that ended up working for me:

 - Start the devel console (cd ~/src/sup; ./devel/console.sh)
 - Search for message ids from the source you want to remove and run
   Redwood::FerretIndex#delete on each (the evil source id was 10 in my case):
  ">> Index.each_id(Index.parse_query("source_id:10")){|m| Index.delete(m)}; Index.save_index"

Cheers,
jonathan
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


  reply	other threads:[~2010-01-05  2:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-04  3:35 Jonathan Lassoff
2010-01-05  2:21 ` Jonathan Lassoff [this message]
2010-01-05 21:55   ` William Morgan
2010-01-05 22:11     ` Jonathan Lassoff
2010-01-05 22:45       ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1262657952-sup-6680@sfo.thejof.com \
    --to=jof@thejof.com \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox