server: fix tantivy/newsreader search bug

This commit is contained in:
Bill Thiede 2025-01-19 17:20:00 -08:00
parent bed6ae01f2
commit f90ff72316

View File

@ -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 {