From f90ff7231610ebb4615c731514bd8f23daad916c Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 19 Jan 2025 17:20:00 -0800 Subject: [PATCH] server: fix tantivy/newsreader search bug --- server/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {