diff --git a/server/src/lib.rs b/server/src/lib.rs index afa8521..69ab1a6 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -636,7 +636,7 @@ impl fmt::Display for Query { if self.is_newsreader { write!(f, "is:newsreader ")?; } - if self.is_tantivy { + if self.is_newsreader { write!(f, "is:news ")?; } match self.corpus { @@ -709,7 +709,7 @@ impl FromStr for Query { } else if word == "is:mail" || word == "is:email" || word == "is:notmuch" { is_notmuch = true; } else if word == "is:news" { - is_tantivy = true; + is_newsreader = true; } else if word == "is:newsreader" { is_newsreader = true; } else {