From: William Morgan Date: Wed, 26 Dec 2007 21:21:52 +0000 (-0800) Subject: whoops, fix spurious delete in previous commit X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=7914429bb85086d411760d27e3755dbc90d5f329;p=sup whoops, fix spurious delete in previous commit --- diff --git a/lib/sup/index.rb b/lib/sup/index.rb index 84771ca..592dc0f 100644 --- a/lib/sup/index.rb +++ b/lib/sup/index.rb @@ -383,7 +383,7 @@ EOS end def has_any_from_source_with_label? source, label - q = erret::Search::BooleanQuery.new + q = Ferret::Search::BooleanQuery.new q.add_query Ferret::Search::TermQuery.new("source_id", source.id.to_s), :must q.add_query Ferret::Search::TermQuery.new("label", label.to_s), :must index.search(q, :limit => 1).total_hits > 0