Excerpts from William Morgan's message of Sat Feb 02 21:44:41 -0700 2008:
> I'm not sure why that label would be there, but you can perform some
> index surgery to remove it.
> 
> $ sh devel/console.sh 
> irb(main):001:0>
> r=Index.ferret.search("message_id:[EMAIL PROTECTED]")
> => #<struct Ferret::Search::TopDocs total_hits=1, hits=[#<struct
> Ferret::Search::Hit doc=92571, score=10.82630443573>],
> max_score=10.82630443573, searcher=#<Ferret::Search::Searcher:0xb740dff0>>
> irb(main):002:0> id=r.hits.first.doc
> => 92571
> irb(main):003:0> m = Index.build_message id
> [...]
> irb(main):004:0> m.remove_label :draft
> => true
> irb(main):005:0> m.save Index
> => false
> irb(main):006:0> exit
> 
Two months later and I finally did this... :)  It worked great.  The only
slight problem was that somehow all 25 messages in that thread were falsely
labeled so I had to repeat the above 25 times.  Although I did eventually
realize that the console accepted semicolons so I combined them into a 
single line and then just did arrow up 25 times so it was pretty fast.

Thanks!

John
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to