From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.13.12 with SMTP id z12cs1238942ebz; Mon, 4 Jan 2010 18:23:34 -0800 (PST) Received: by 10.224.97.30 with SMTP id j30mr11608507qan.244.1262658213464; Mon, 04 Jan 2010 18:23:33 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 31si28636183qyk.87.2010.01.04.18.23.33; Mon, 04 Jan 2010 18:23:33 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id D791A15B802F; Mon, 4 Jan 2010 21:23:32 -0500 (EST) Received: from sfo.thejof.com (sfo.thejof.com [69.59.162.162]) by rubyforge.org (Postfix) with ESMTP id 836EF18582CC for ; Mon, 4 Jan 2010 21:21:40 -0500 (EST) Received: by sfo.thejof.com (Postfix, from userid 1000) id A70DA12240B9; Mon, 4 Jan 2010 18:21:34 -0800 (PST) From: Jonathan Lassoff To: sup-talk In-reply-to: <1262573310-sup-6062@sfo.thejof.com> References: <1262573310-sup-6062@sfo.thejof.com> Date: Mon, 04 Jan 2010 18:21:34 -0800 Message-Id: <1262657952-sup-6680@sfo.thejof.com> User-Agent: Sup/git Subject: Re: [sup-talk] Delete A Source From Ferret Index X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org 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