server: fix tantivy/newsreader search bug
This commit is contained in:
parent
bed6ae01f2
commit
f90ff72316
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user